Mercurial > hg > graal-jvmci-8
comparison 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 |
comparison
equal
deleted
inserted
replaced
4719:d532160c55f7 | 4731:4ceaf61479fc |
---|---|
536 _curr_len = *end_ptr - *data_ptr; | 536 _curr_len = *end_ptr - *data_ptr; |
537 _curr_data = *data_ptr; | 537 _curr_data = *data_ptr; |
538 _curr_env = NULL; | 538 _curr_env = NULL; |
539 _cached_length_ptr = cached_length_ptr; | 539 _cached_length_ptr = cached_length_ptr; |
540 _cached_data_ptr = cached_data_ptr; | 540 _cached_data_ptr = cached_data_ptr; |
541 *_cached_length_ptr = 0; | |
542 *_cached_data_ptr = NULL; | |
543 | 541 |
544 _state = _thread->jvmti_thread_state(); | 542 _state = _thread->jvmti_thread_state(); |
545 if (_state != NULL) { | 543 if (_state != NULL) { |
546 _h_class_being_redefined = _state->get_class_being_redefined(); | 544 _h_class_being_redefined = _state->get_class_being_redefined(); |
547 _load_kind = _state->get_class_load_kind(); | 545 _load_kind = _state->get_class_load_kind(); |