RFR: 8282231: x86-32: runtime call to SharedRuntime::ldiv corrupts registers [v2]

Andrew Haley aph at openjdk.java.net
Tue Feb 22 15:37:35 UTC 2022


On Tue, 22 Feb 2022 14:50:05 GMT, Jie Fu <jiefu at openjdk.org> wrote:

> So how did you find this bug? 

Found during testing of a new OS build. Fails bootstrap.

> Is it possible to add a jtreg test for this fix?

No, because it corrupts registers in arbitrary places, causing seemingly-random crashes.
If you're lucky it'll corrupt a pointer value, in which case you're almost guaranteed a crash.
If you're unlucky it'll corrupt some data value somewhere. It's a Heisenbug.

> Please also update the copyright year. Thanks.

OK.

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

PR: https://git.openjdk.java.net/jdk/pull/7575


More information about the hotspot-compiler-dev mailing list