We need to port https://github.com/mono/mono/pull/20349 and verify it works.
We need to port mono/mono#20349 and verify it works.