8160361: SEGV occurred at JNIHandleBlock::oops_do(OopClosure*)
authorysuenaga
Tue, 28 Jun 2016 00:24:10 +0900
changeset 39691 8ebf84c4be69
parent 39690 09a3ee292336
child 39692 57f307f875e0
child 39693 8b6e966563ce
8160361: SEGV occurred at JNIHandleBlock::oops_do(OopClosure*) Reviewed-by: dsamersoff, tschatzl
hotspot/src/share/vm/classfile/classLoaderData.cpp
--- a/hotspot/src/share/vm/classfile/classLoaderData.cpp	Mon Jul 04 11:27:11 2016 +0200
+++ b/hotspot/src/share/vm/classfile/classLoaderData.cpp	Tue Jun 28 00:24:10 2016 +0900
@@ -142,7 +142,9 @@
 
   f->do_oop(&_class_loader);
   _dependencies.oops_do(f);
-  _handles->oops_do(f);
+  if (_handles != NULL) {
+    _handles->oops_do(f);
+  }
   if (klass_closure != NULL) {
     classes_do(klass_closure);
   }