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