Integrated: 8341027: Crash in java/runtime/Unsafe/InternalErrorTest when running with -XX:-UseCompressedClassPointers
Stefan Karlsson
stefank at openjdk.org
Fri Sep 27 08:31:40 UTC 2024
On Thu, 26 Sep 2024 13:04:58 GMT, Stefan Karlsson <stefank at openjdk.org> wrote:
> The JVM crashes in the GC because the destroys the length fields of the array it uses as the destination.
>
> One example of the failures you see with this:
>
> # guarantee(p == top()) failed: end of last object must match end of space
> ...
> V [libjvm.so+0x147e054] ContiguousSpace::verify() const+0x1e0 (space.cpp:95)
> V [libjvm.so+0x974118] DefNewGeneration::verify()+0x18 (defNewGeneration.cpp:834)
> V [libjvm.so+0x1448a88] SerialHeap::verify(VerifyOption)+0x78 (serialHeap.cpp:881)
> V [libjvm.so+0x15d9cd0] Universe::verify(VerifyOption, char const*)+0x490 (universe.cpp:1240)
> V [libjvm.so+0x1673890] VM_Exit::doit()+0xa0 (universe.hpp:349)
>
>
> Fix this by changing the hard-coded 16 to the proper array base offset, which changes depending on the value of `UseCompressedClassPointers`.
This pull request has now been integrated.
Changeset: 9003e2c5
Author: Stefan Karlsson <stefank at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/9003e2c519e63fa547e2f072e47f74057094efa2
Stats: 2 lines in 1 file changed: 1 ins; 0 del; 1 mod
8341027: Crash in java/runtime/Unsafe/InternalErrorTest when running with -XX:-UseCompressedClassPointers
Reviewed-by: aboldtch, coleenp
-------------
PR: https://git.openjdk.org/jdk/pull/21208
More information about the hotspot-runtime-dev
mailing list