Commit migrated from https://github.com/dotnet/corefx/commit/86f6a8ff589cd7f0fbb0237ef7de97bd92046d7b