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

Stefan Karlsson stefank at openjdk.org
Mon Apr 22 07:44:45 UTC 2024


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.

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

Commit messages:
 - JVMCI: Don't call CompressedKlassPointers functions with -UCCP

Changes: https://git.openjdk.org/lilliput/pull/151/files
  Webrev: https://webrevs.openjdk.org/?repo=lilliput&pr=151&range=00
  Stats: 8 lines in 1 file changed: 6 ins; 0 del; 2 mod
  Patch: https://git.openjdk.org/lilliput/pull/151.diff
  Fetch: git fetch https://git.openjdk.org/lilliput.git pull/151/head:pull/151

PR: https://git.openjdk.org/lilliput/pull/151


More information about the lilliput-dev mailing list