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