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