1.1 --- a/src/share/vm/prims/jvmtiRedefineClasses.cpp Wed Jun 12 11:17:39 2013 +0200 1.2 +++ b/src/share/vm/prims/jvmtiRedefineClasses.cpp Wed Jul 17 18:06:29 2013 -0400 1.3 @@ -3342,9 +3342,7 @@ 1.4 // should get cleared in the_class too. 1.5 if (the_class->get_cached_class_file_bytes() == 0) { 1.6 // the_class doesn't have a cache yet so copy it 1.7 - the_class->set_cached_class_file( 1.8 - scratch_class->get_cached_class_file_bytes(), 1.9 - scratch_class->get_cached_class_file_len()); 1.10 + the_class->set_cached_class_file(scratch_class->get_cached_class_file()); 1.11 } 1.12 #ifndef PRODUCT 1.13 else { 1.14 @@ -3357,7 +3355,7 @@ 1.15 1.16 // NULL out in scratch class to not delete twice. The class to be redefined 1.17 // always owns these bytes. 1.18 - scratch_class->set_cached_class_file(NULL, 0); 1.19 + scratch_class->set_cached_class_file(NULL); 1.20 1.21 // Replace inner_classes 1.22 Array<u2>* old_inner_classes = the_class->inner_classes();