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