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