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