RFR: 8347422: Crash during safepoint handler execution with -XX:+UseAPX

Tobias Hartmann thartmann at openjdk.org
Mon Jan 13 14:37:39 UTC 2025


On Mon, 13 Jan 2025 12:28:29 GMT, Jatin Bhateja <jbhateja at openjdk.org> wrote:

> Technically, randomizing allocation sequence from the same register class is not very useful

It's definitely useful to catch bugs where silent register corruption is never detected because that exact register is not used anywhere else. Or for cases where a specific register is not saved although it should be but we don't notice because that register is not used anywhere else. And we had quite a few bugs like this in the past.

Wouldn't such a random register selection also randomly prioritize EGPRs and therefore do the same thing that you did manually? And if not, doesn't that mean that we should definitely add such a stress flag?

> Yes, but with -XX:+SafepointALot crash hit early.

Okay, good then.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/23035#issuecomment-2587269757


More information about the hotspot-compiler-dev mailing list