Commit migrated from https://github.com/dotnet/corefx/commit/2f2fae24846c40bc588625b47ec12f43ac323612