RFR: 8335977: Deoptimization fails with assert "object should be reallocated already"

Cesar Soares Lucas cslucas at openjdk.org
Fri Oct 25 19:36:08 UTC 2024


On Tue, 22 Oct 2024 07:18:19 GMT, Tobias Hartmann <thartmann at openjdk.org> wrote:

> Does your test also reproduce the NPE example that @chhagedorn triggered with his [Test3.java](https://bugs.openjdk.org/secure/attachment/111067/Test3.java)? If not, I think that one should be added as well.

The test I added in this PR is based on @chhagedorn Test3.java. I was able to reproduce the issue on my end fairly easily.

> Now that the -XX:+StressUnstableIfTraps option was added with [JDK-8335334](https://bugs.openjdk.org/browse/JDK-8335334), could you please also add [Test.java](https://bugs.openjdk.org/secure/attachment/111040/Test.java) that I used originally to reproduce the issue?

I wasn't able to reproduce the issue using Test.java, how often does it reproduce for you with the flags that you listed at the top of Test.java ?

Thanks for testing @TobiHartmann !

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

PR Comment: https://git.openjdk.org/jdk/pull/21624#issuecomment-2438651634


More information about the hotspot-compiler-dev mailing list