685 jvmtiAddrLocationMap *_map; |
685 jvmtiAddrLocationMap *_map; |
686 const void *_compile_info; |
686 const void *_compile_info; |
687 public: |
687 public: |
688 JvmtiCompiledMethodLoadEventMark(JavaThread *thread, nmethod *nm, void* compile_info_ptr = NULL) |
688 JvmtiCompiledMethodLoadEventMark(JavaThread *thread, nmethod *nm, void* compile_info_ptr = NULL) |
689 : JvmtiMethodEventMark(thread,methodHandle(thread, nm->method())) { |
689 : JvmtiMethodEventMark(thread,methodHandle(thread, nm->method())) { |
690 _code_data = nm->code_begin(); |
690 _code_data = nm->insts_begin(); |
691 _code_size = nm->code_size(); |
691 _code_size = nm->insts_size(); |
692 _compile_info = compile_info_ptr; // Set void pointer of compiledMethodLoad Event. Default value is NULL. |
692 _compile_info = compile_info_ptr; // Set void pointer of compiledMethodLoad Event. Default value is NULL. |
693 JvmtiCodeBlobEvents::build_jvmti_addr_location_map(nm, &_map, &_map_length); |
693 JvmtiCodeBlobEvents::build_jvmti_addr_location_map(nm, &_map, &_map_length); |
694 } |
694 } |
695 ~JvmtiCompiledMethodLoadEventMark() { |
695 ~JvmtiCompiledMethodLoadEventMark() { |
696 FREE_C_HEAP_ARRAY(jvmtiAddrLocationMap, _map); |
696 FREE_C_HEAP_ARRAY(jvmtiAddrLocationMap, _map); |