assert(_owner_offset != 0) failed in javaClasses.cpp if the following tests are run in CDS mode.
applications/kitchensink/Kitchensink.java Tier4
applications/runthese/RunThese30M.java Tier3, Tier4
java/lang/management/ThreadMXBean/FindDeadlocks.java Tier3
java/lang/management/ThreadMXBean/LockedSynchronizers.java Tier3
java/lang/management/ThreadMXBean/MyOwnSynchronizer.java Tier3
open/src/hotspot/share/classfile/javaClasses.cpp:4424), pid=9653, tid=9662
# assert(_owner_offset != 0) failed: Must be initialized
#
To reproduce the problem:
- generate a CDS archive by running: java -Xshare:dump
- run the test as usual using jtreg