This happens with the fix in JDK-8272290, plus the patch https://bugs.openjdk.java.net/secure/attachment/95973/refval-v1.patch
# Internal Error (src/hotspot/share/services/heapDumper.cpp:735), pid=20401, tid=20411
# Error: ShouldNotReachHere()
Stack: [0x00007f6bd8230000,0x00007f6bd8330000], sp=0x00007f6bd832e4f0, free space=1017k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.so+0xdee49e] DumperSupport::sig2size(Symbol*)+0x7e
V [libjvm.so+0xdeefc0] DumperSupport::get_static_fields_size(InstanceKlass*, unsigned short&)+0x1b0
V [libjvm.so+0xdf546b] DumperSupport::dump_class_and_array_classes(DumpWriter*, Klass*)+0x6b
V [libjvm.so+0x9c82fd] ClassLoaderData::classes_do(KlassClosure*)+0x3d
V [libjvm.so+0x9d254d] ClassLoaderDataGraph::classes_do(KlassClosure*)+0x1bd
V [libjvm.so+0xdf2f2f] VM_HeapDumper::work(unsigned int) [clone .part.0]+0xdf
V [libjvm.so+0x1adb2e0] WorkGang::run_task(AbstractGangTask*, unsigned int, bool)+0x140
V [libjvm.so+0xdecf4c] VM_HeapDumper::doit()+0x16c
V [libjvm.so+0x1a6beda] VM_Operation::evaluate()+0x18a
V [libjvm.so+0x1a8f453] VMThread::evaluate_operation(VM_Operation*)+0x183
V [libjvm.so+0x1a900dc] VMThread::inner_execute(VM_Operation*)+0x20c
V [libjvm.so+0x1a90325] VMThread::loop()+0xb5
V [libjvm.so+0x1a90457] VMThread::run()+0xc7
V [libjvm.so+0x196ff60] Thread::call_run()+0x100
V [libjvm.so+0x16205b4] thread_native_entry(Thread*)+0x104