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