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