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