443 _has_flushed_dependencies = 0;
444 _has_unsafe_access = 0;
445 _has_method_handle_invokes = 0;
446 _lazy_critical_native = 0;
447 _has_wide_vectors = 0;
448 _marked_for_deoptimization = 0;
449 _lock_count = 0;
450 _stack_traversal_mark = 0;
451 _unload_reported = false; // jvmti state
452
453 #ifdef ASSERT
454 _oops_are_stale = false;
455 #endif
456
457 _oops_do_mark_link = NULL;
458 _jmethod_id = NULL;
459 _osr_link = NULL;
460 _scavenge_root_link = NULL;
461 _scavenge_root_state = 0;
462 _compiler = NULL;
463
464 #ifdef HAVE_DTRACE_H
465 _trap_offset = 0;
466 #endif // def HAVE_DTRACE_H
467 }
468
469 nmethod* nmethod::new_native_nmethod(methodHandle method,
470 int compile_id,
471 CodeBuffer *code_buffer,
472 int vep_offset,
473 int frame_complete,
474 int frame_size,
475 ByteSize basic_lock_owner_sp_offset,
476 ByteSize basic_lock_sp_offset,
477 OopMapSet* oop_maps) {
478 code_buffer->finalize_oop_references(method);
479 // create nmethod
480 nmethod* nm = NULL;
481 {
482 MutexLockerEx mu(CodeCache_lock, Mutex::_no_safepoint_check_flag);
|
443 _has_flushed_dependencies = 0;
444 _has_unsafe_access = 0;
445 _has_method_handle_invokes = 0;
446 _lazy_critical_native = 0;
447 _has_wide_vectors = 0;
448 _marked_for_deoptimization = 0;
449 _lock_count = 0;
450 _stack_traversal_mark = 0;
451 _unload_reported = false; // jvmti state
452
453 #ifdef ASSERT
454 _oops_are_stale = false;
455 #endif
456
457 _oops_do_mark_link = NULL;
458 _jmethod_id = NULL;
459 _osr_link = NULL;
460 _scavenge_root_link = NULL;
461 _scavenge_root_state = 0;
462 _compiler = NULL;
463 _rtm_state = NoRTM;
464
465 #ifdef HAVE_DTRACE_H
466 _trap_offset = 0;
467 #endif // def HAVE_DTRACE_H
468 }
469
470 nmethod* nmethod::new_native_nmethod(methodHandle method,
471 int compile_id,
472 CodeBuffer *code_buffer,
473 int vep_offset,
474 int frame_complete,
475 int frame_size,
476 ByteSize basic_lock_owner_sp_offset,
477 ByteSize basic_lock_sp_offset,
478 OopMapSet* oop_maps) {
479 code_buffer->finalize_oop_references(method);
480 // create nmethod
481 nmethod* nm = NULL;
482 {
483 MutexLockerEx mu(CodeCache_lock, Mutex::_no_safepoint_check_flag);
|