The internal vm tests CollectedHeap::test_is_in fails when class data sharing is enabled.
$ java -client -XX:+ExecuteInternalVMTests -version
Running internal VM tests
Running test: arrayOopDesc::test_max_array_length()
Running test: CollectedHeap::test_is_in()
# To suppress the following error report, specify this argument
# after -XX: or in .hotspotrc: SuppressErrorAt=/collectedHeap.cpp:525
#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (hotspot-gc/src/share/vm/gc_interface/collectedHeap.cpp:525), pid=28757, tid=2
# assert(!heap->is_in(after_heap)) failed: after_heap: 0xd9c00002 is unexpectedly in the heap
#
# JRE version: 8.0-b30
# Java VM: Java HotSpot(TM) Client VM (24.0-b14-hotspot-gc.20120607114319-jvmg mixed mode, sharing solaris-x86 )
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# hs_err_pid28757.log