RFR: 8318306: java/util/Arrays/Sorting.java fails with "Array is not sorted at 8228-th position: 8251.0 and 8153.0"

Srinivas Vamsi Parasa duke at openjdk.org
Thu Oct 19 18:10:31 UTC 2023


On Wed, 18 Oct 2023 08:10:01 GMT, Tobias Hartmann <thartmann at openjdk.org> wrote:

> Are you able to reproduce the issue? A targeted regression test would be great.

@TobiHartmann 
Thanks Tobias!
I was able to reproduce the issue when -XX:+DeoptimizeALot is used.  
Please see the updated description of the issue along with the summary of the suggested fix.

@TobiHartmann 
>  A targeted regression test would be great.

Also added a micro to reproduce the error in the description.

> Isn't the problem that we can deopt when calling into the runtime to allocate the array and that we then need to make sure that we re-execute the bytecode? 

Please see the description updated to be technically correct, as suggested.

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

PR Comment: https://git.openjdk.org/jdk/pull/16230#issuecomment-1768996963
PR Comment: https://git.openjdk.org/jdk/pull/16230#issuecomment-1769160094
PR Comment: https://git.openjdk.org/jdk/pull/16230#issuecomment-1771404816


More information about the hotspot-compiler-dev mailing list