Commit migrated from https://github.com/dotnet/corefx/commit/9b129eccfc6f8bcb423b2658954975c15164d03b