JDK-8205702 : assert(UseCompressedClassPointers) failed in universe.hpp
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 11
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2018-06-26
  • Updated: 2018-07-06
  • Resolved: 2018-06-28
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 12
11 b20Fixed 12Fixed
Related Reports
Relates :  
Description
compiler/gcbarriers/UnsafeIntrinsicsTest.java tier1, tier2
gc/stress/gcbasher/TestGCBasherWithZ.java tier4
gc/stress/gcold/TestGCOldWithZ.java tier4

Running the above tests in CDS mode results in the following assert failure:

open/src/hotspot/share/memory/universe.hpp:249), pid=12790, tid=12792
#  assert(UseCompressedClassPointers) failed: no compressed klass ptrs?
Comments
ZGC should disable CDS because they don't work together.
26-06-2018

Call stack from hs err log. --------------- T H R E A D --------------- Current thread (0x00007f11cc01eef0): JavaThread "Unknown thread" [_thread_in_vm, id=12792, stack(0x00007f11d3622000,0x00007f11d3723000)] Stack: [0x00007f11d3622000,0x00007f11d3723000], sp=0x00007f11d37217c0, free space=1021k Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code) V [libjvm.so+0x18a796f] VMError::report_and_die(int, char const*, char const*, __va_list_tag*, Thread*, unsigned char*, void*, void*, char const*, int, unsigned long)+0x25f V [libjvm.so+0x18a878f] VMError::report_and_die(Thread*, void*, char const*, int, char const*, char const*, __va_list_tag*)+0x2f V [libjvm.so+0xb2b010] report_vm_error(char const*, int, char const*, char const*, ...)+0x100 V [libjvm.so+0x13c72aa] MetaspaceShared::initialize_runtime_shared_and_meta_spaces()+0x12a V [libjvm.so+0x13bf3b5] Metaspace::global_initialize()+0xa5 V [libjvm.so+0x1828a3c] universe_init()+0xdc V [libjvm.so+0xe8d893] init_globals()+0x63 V [libjvm.so+0x17e7fa5] Threads::create_vm(JavaVMInitArgs*, bool*)+0x2c5 V [libjvm.so+0x100ed5a] JNI_CreateJavaVM+0x6a C [libjli.so+0x3ff6] JavaMain+0x86
26-06-2018