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