Lines Matching refs:nm

98       nmethod* nm = cb->as_nmethod_or_null();
99 code_size += nm->insts_size();
100 stub_size += nm->stub_size();
102 scopes_oop_size += nm->oops_size();
103 scopes_data_size += nm->scopes_data_size();
104 scopes_pcs_size += nm->scopes_pcs_size();
274 void CodeCache::blobs_do(void f(CodeBlob* nm)) {
282 void CodeCache::nmethods_do(void f(nmethod* nm)) {
284 FOR_ALL_BLOBS(nm) {
285 if (nm->is_nmethod()) f((nmethod*)nm);
306 FOR_ALL_ALIVE_NMETHODS(nm) {
307 nm->do_unloading(is_alive, keep_alive, unloading_occurred);
349 void CodeCache::add_scavenge_root_nmethod(nmethod* nm) {
351 nm->set_on_scavenge_root_list();
352 nm->set_scavenge_root_link(_scavenge_root_nmethods);
353 set_scavenge_root_nmethods(nm);
354 print_trace("add_scavenge_root", nm);
357 void CodeCache::drop_scavenge_root_nmethod(nmethod* nm) {
359 print_trace("drop_scavenge_root", nm);
364 if (cur == nm) {
368 nm->set_scavenge_root_link(NULL);
369 nm->clear_on_scavenge_root_list();
425 nmethod *nm = (nmethod*)cb;
426 assert(nm->scavenge_root_not_marked(), "clean state");
427 if (nm->on_scavenge_root_list())
428 nm->set_scavenge_root_marked();
439 nmethod *nm = (nmethod*)cb;
440 assert(nm->scavenge_root_not_marked(), "must be already processed");
441 if (nm->on_scavenge_root_list())
443 nm->verify_scavenge_root_oops();
485 void CodeCache::remove_saved_code(nmethod* nm) {
488 assert(nm->is_speculatively_disconnected(), "shouldn't call for other nmethods");
492 if (saved == nm) {
500 xtty->begin_elem("nmethod_removed compile_id='%3d'", nm->compile_id());
512 void CodeCache::speculatively_disconnect(nmethod* nm) {
514 assert(nm->is_in_use() && !nm->is_speculatively_disconnected(), "should only disconnect live nmethods");
515 nm->set_saved_nmethod_link(_saved_nmethods);
516 _saved_nmethods = nm;
518 nm->print_on(tty, " ### nmethod is speculatively disconnected\n");
522 xtty->begin_elem("nmethod_disconnected compile_id='%3d'", nm->compile_id());
523 xtty->method(methodOop(nm->method()));
527 nm->method()->clear_code();
528 nm->set_speculatively_disconnected(true);
541 nmethod *nm = (nmethod*)cb;
542 assert(!nm->is_unloaded(), "Tautology");
544 nm->cleanup_inline_caches();
546 DEBUG_ONLY(nm->verify());
547 nm->fix_oop_relocations();
561 nmethod *nm = (nmethod*)cb;
562 nm->oops_do(&voc);
563 nm->verify_oop_relocations();
624 FOR_ALL_ALIVE_NMETHODS(nm) {
625 nm->clear_inline_caches();
662 FOR_ALL_ALIVE_NMETHODS(nm) {
663 if (!nm->is_marked_for_deoptimization() &&
664 nm->check_all_dependencies()) {
668 nm->print();
669 nm->print_dependencies();
692 nmethod *nm = old_method->code();
693 if (nm != NULL) {
694 nm->mark_for_deoptimization();
699 FOR_ALL_ALIVE_NMETHODS(nm) {
700 if (nm->is_marked_for_deoptimization()) {
702 } else if (nm->is_evol_dependent_on(dependee())) {
704 nm->mark_for_deoptimization();
708 nm->clear_inline_caches();
720 FOR_ALL_ALIVE_NMETHODS(nm) {
721 nm->mark_for_deoptimization();
730 FOR_ALL_ALIVE_NMETHODS(nm) {
731 if (nm->is_dependent_on_method(dependee)) {
733 nm->mark_for_deoptimization();
743 FOR_ALL_ALIVE_NMETHODS(nm) {
744 if (nm->is_marked_for_deoptimization()) {
753 if (nm->is_not_entrant() && nm->can_not_entrant_be_converted()) {
754 nm->make_zombie();
756 nm->make_not_entrant();
764 FOR_ALL_ALIVE_NMETHODS(nm) {
765 if (nm->is_marked_for_deoptimization()) {
766 nm->make_not_entrant();
835 nmethod* nm = (nmethod*)cb;
837 if (Verbose && nm->method() != NULL) {
839 char *method_name = nm->method()->name_and_sig_as_C_string();
841 if(nm->is_alive()) { tty->print_cr(" alive"); }
842 if(nm->is_not_entrant()) { tty->print_cr(" not-entrant"); }
843 if(nm->is_zombie()) { tty->print_cr(" zombie"); }
848 if(nm->is_alive()) { nmethodAlive++; }
849 if(nm->is_not_entrant()) { nmethodNotEntrant++; }
850 if(nm->is_zombie()) { nmethodZombie++; }
851 if(nm->is_unloaded()) { nmethodUnloaded++; }
852 if(nm->is_native_method()) { nmethodNative++; }
854 if(nm->method() != NULL && nm->is_java_method()) {
856 if (nm->insts_size() > maxCodeSize) {
857 maxCodeSize = nm->insts_size();
880 nmethod* nm = (nmethod*)cb;
881 if(nm->is_java_method()) {
882 buckets[nm->insts_size() / bucketSize]++;