[master] RFR: JVMCI: Don't call CompressedKlassPointers functions with -UCCP

Stefan Karlsson stefank at openjdk.org
Mon Apr 22 08:34:47 UTC 2024


On Mon, 22 Apr 2024 07:39:58 GMT, Stefan Karlsson <stefank at openjdk.org> wrote:

> We hit this assert when running JVMCI tests and -XX:-UseCompressedClassPointers:
> 
> #  Internal Error (/home/stefank/git/jdk/open/src/hotspot/share/oops/compressedKlass.hpp:95), pid=1496156, tid=1496350                                                                                                                                                                                                                                                                                                                     
> #  assert(var != (T)-1) failed: Not yet initialized
> ...
> V  [libjvm.so+0x10346ec]  CompilerToVM::Data::initialize(JVMCIEnv*)+0x44c  (compressedKlass.hpp:95)                                                                                                                                                                                                                                                                                                                                        
> V  [libjvm.so+0x1057999]  readConfiguration0(JNIEnv_*, JVMCIEnv*)+0x159  (jvmciCompilerToVMInit.cpp:382) 
> 
> 
> A simple fix is to stop calling the CompressedKlassPointers:: functions.

@tstuefe added the asserting `check_init` function with the TinyCP patch. I agree  that this is something we could/should fix in the upstream repository.

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

PR Comment: https://git.openjdk.org/lilliput/pull/151#issuecomment-2068806446


More information about the lilliput-dev mailing list