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