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