Fix inefficient interop in OSX FileSystemWatcher (dotnet/corefx#34715)
authorJan Kotas <jkotas@microsoft.com>
Mon, 21 Jan 2019 13:55:09 +0000 (05:55 -0800)
committerStephen Toub <stoub@microsoft.com>
Mon, 21 Jan 2019 13:55:09 +0000 (08:55 -0500)
commitc6005012eebac1543431f31a7640b2a7dd682821
treebc5ed54e0460144745ba3cf70759bdb060b7e575
parentba6b2d0da18e47cf7a7b494729ca81042b7d79fc
 Fix inefficient interop in OSX FileSystemWatcher (dotnet/corefx#34715)

* Fix inefficient interop in OSX FileSystemWatcher

Avoid unnecessary array allocations in the FileSystemWatcher callback

* Add using for FSEventStreamEventFlags

Commit migrated from https://github.com/dotnet/corefx/commit/93386f5dd75e291d7c0dbbb450f5b96659b3d58f
src/libraries/Common/src/Interop/OSX/Interop.EventStream.cs
src/libraries/System.IO.FileSystem.Watcher/src/System/IO/FileSystemWatcher.OSX.cs