Commit migrated from https://github.com/dotnet/corefx/commit/7a8a34ef03b596165906bbe4076570fbf8b6b19d