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