diff src/share/vm/prims/jvmtiExport.cpp @ 4731:4ceaf61479fc

7122253: Instrumentation.retransformClasses() leaks class bytes Summary: Change ClassFileParser::parseClassFile() to use the instanceKlass:_cached_class_file_bytes field to avoid leaking the cache. Reviewed-by: coleenp, acorn, poonam
author dcubed
date Thu, 22 Dec 2011 12:50:42 -0800
parents a6eef545f1a2
children d2a62e0f25eb
line wrap: on
line diff
--- a/src/share/vm/prims/jvmtiExport.cpp	Wed Dec 21 18:22:14 2011 -0800
+++ b/src/share/vm/prims/jvmtiExport.cpp	Thu Dec 22 12:50:42 2011 -0800
@@ -538,8 +538,6 @@
     _curr_env = NULL;
     _cached_length_ptr = cached_length_ptr;
     _cached_data_ptr = cached_data_ptr;
-    *_cached_length_ptr = 0;
-    *_cached_data_ptr = NULL;
 
     _state = _thread->jvmti_thread_state();
     if (_state != NULL) {