diff -r 37a5a1341478 -r b6ca1802dc7c src/share/vm/prims/jvmtiRedefineClasses.cpp --- a/src/share/vm/prims/jvmtiRedefineClasses.cpp Tue May 19 11:06:34 2015 +0200 +++ b/src/share/vm/prims/jvmtiRedefineClasses.cpp Wed May 20 02:57:25 2015 -0700 @@ -3980,8 +3980,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