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