src/share/vm/code/nmethod.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File 7083786 Sdiff src/share/vm/code

src/share/vm/code/nmethod.cpp

Print this page




 434 
 435 const char* nmethod::compile_kind() const {
 436   if (is_osr_method())     return "osr";
 437   if (method() != NULL && is_native_method())  return "c2n";
 438   return NULL;
 439 }
 440 
 441 // Fill in default values for various flag fields
 442 void nmethod::init_defaults() {
 443   _state                      = alive;
 444   _marked_for_reclamation     = 0;
 445   _has_flushed_dependencies   = 0;
 446   _speculatively_disconnected = 0;
 447   _has_unsafe_access          = 0;
 448   _has_method_handle_invokes  = 0;
 449   _marked_for_deoptimization  = 0;
 450   _lock_count                 = 0;
 451   _stack_traversal_mark       = 0;
 452   _unload_reported            = false;           // jvmti state
 453 
 454   NOT_PRODUCT(_has_debug_info = false);
 455 #ifdef ASSERT
 456   _oops_are_stale             = false;
 457 #endif
 458 
 459   _oops_do_mark_link       = NULL;
 460   _jmethod_id              = NULL;
 461   _osr_link                = NULL;
 462   _scavenge_root_link      = NULL;
 463   _scavenge_root_state     = 0;
 464   _saved_nmethod_link      = NULL;
 465   _compiler                = NULL;
 466 
 467 #ifdef HAVE_DTRACE_H
 468   _trap_offset             = 0;
 469 #endif // def HAVE_DTRACE_H
 470 }
 471 
 472 
 473 nmethod* nmethod::new_native_nmethod(methodHandle method,
 474   int compile_id,




 434 
 435 const char* nmethod::compile_kind() const {
 436   if (is_osr_method())     return "osr";
 437   if (method() != NULL && is_native_method())  return "c2n";
 438   return NULL;
 439 }
 440 
 441 // Fill in default values for various flag fields
 442 void nmethod::init_defaults() {
 443   _state                      = alive;
 444   _marked_for_reclamation     = 0;
 445   _has_flushed_dependencies   = 0;
 446   _speculatively_disconnected = 0;
 447   _has_unsafe_access          = 0;
 448   _has_method_handle_invokes  = 0;
 449   _marked_for_deoptimization  = 0;
 450   _lock_count                 = 0;
 451   _stack_traversal_mark       = 0;
 452   _unload_reported            = false;           // jvmti state
 453 

 454 #ifdef ASSERT
 455   _oops_are_stale             = false;
 456 #endif
 457 
 458   _oops_do_mark_link       = NULL;
 459   _jmethod_id              = NULL;
 460   _osr_link                = NULL;
 461   _scavenge_root_link      = NULL;
 462   _scavenge_root_state     = 0;
 463   _saved_nmethod_link      = NULL;
 464   _compiler                = NULL;
 465 
 466 #ifdef HAVE_DTRACE_H
 467   _trap_offset             = 0;
 468 #endif // def HAVE_DTRACE_H
 469 }
 470 
 471 
 472 nmethod* nmethod::new_native_nmethod(methodHandle method,
 473   int compile_id,


src/share/vm/code/nmethod.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File