changeset 11607:9674b6b8470f

8160361: SEGV occurred at JNIHandleBlock::oops_do(OopClosure*) Reviewed-by: dsamersoff, tschatzl
author ysuenaga
date Tue, 28 Jun 2016 00:24:10 +0900
parents 48e9e7db6944
children f12df741e15e 715b44fbeca1
files src/share/vm/classfile/classLoaderData.cpp
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/classfile/classLoaderData.cpp	Mon Jul 04 11:27:11 2016 +0200
+++ b/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);
   }