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