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