hotspot/src/share/vm/prims/jvmtiRedefineClasses.cpp
changeset 31041 7d59fa6a48f1
parent 31038 2fd2fdc6a70a
parent 30773 3f15e2dc056b
child 31046 d01ad7a0ecb0
--- a/hotspot/src/share/vm/prims/jvmtiRedefineClasses.cpp	Thu May 21 20:29:09 2015 +0200
+++ b/hotspot/src/share/vm/prims/jvmtiRedefineClasses.cpp	Fri May 22 09:50:32 2015 +0200
@@ -28,9 +28,9 @@
 #include "classfile/verifier.hpp"
 #include "code/codeCache.hpp"
 #include "compiler/compileBroker.hpp"
+#include "gc/shared/gcLocker.hpp"
 #include "interpreter/oopMapCache.hpp"
 #include "interpreter/rewriter.hpp"
-#include "memory/gcLocker.hpp"
 #include "memory/metadataFactory.hpp"
 #include "memory/metaspaceShared.hpp"
 #include "memory/universe.inline.hpp"
@@ -3996,8 +3996,8 @@
            the_class->get_cached_class_file_bytes()) {
     // The same class can be present twice in the scratch classes list or there
     // are multiple concurrent RetransformClasses calls on different threads.
-    // In such cases we have to deallocate scratch_class cached_class_file_bytes.
-    os::free(scratch_class->get_cached_class_file_bytes());
+    // In such cases we have to deallocate scratch_class cached_class_file.
+    os::free(scratch_class->get_cached_class_file());
   }
 
   // NULL out in scratch class to not delete twice.  The class to be redefined