Commit migrated from https://github.com/dotnet/corefx/commit/6621eac3e0ce2a71c990c9a3e21c6349009b364f