hotspot/src/share/vm/classfile/classLoaderData.cpp
changeset 14824 42c57756cf23
parent 14588 8ec26d2d9339
child 14838 6e41d19e827b
--- a/hotspot/src/share/vm/classfile/classLoaderData.cpp	Thu Dec 13 17:27:55 2012 -0800
+++ b/hotspot/src/share/vm/classfile/classLoaderData.cpp	Wed Dec 12 22:41:13 2012 +0100
@@ -167,16 +167,18 @@
     ok = (objArrayOop)ok->obj_at(1);
   }
 
+  // Must handle over GC points
+  assert (last != NULL, "dependencies should be initialized");
+  objArrayHandle last_handle(THREAD, last);
+
   // Create a new dependency node with fields for (class_loader or mirror, next)
   objArrayOop deps = oopFactory::new_objectArray(2, CHECK);
   deps->obj_at_put(0, dependency());
 
-  // Must handle over more GC points
+  // Must handle over GC points
   objArrayHandle new_dependency(THREAD, deps);
 
   // Add the dependency under lock
-  assert (last != NULL, "dependencies should be initialized");
-  objArrayHandle last_handle(THREAD, last);
   locked_add_dependency(last_handle, new_dependency);
 }