Lines Matching refs:nmethod

30 #include "code/nmethod.hpp"
98 nmethod* nm = cb->as_nmethod_or_null();
119 nmethod* CodeCache::_scavenge_root_nmethods = NULL;
120 nmethod* CodeCache::_saved_nmethods = NULL;
143 nmethod* CodeCache::alive_nmethod(CodeBlob* cb) {
146 return (nmethod*)cb;
149 nmethod* CodeCache::first_nmethod() {
155 return (nmethod*)cb;
158 nmethod* CodeCache::next_nmethod (CodeBlob* cb) {
164 return (nmethod*)cb;
203 if (((nmethod *)cb)->has_dependencies()) {
220 // this is called by nmethod::nmethod, which must already own CodeCache_lock
224 if (((nmethod *)cb)->has_dependencies()) {
247 #define FOR_ALL_ALIVE_NMETHODS(var) for (nmethod *var = alive_nmethod(first()); var != NULL; var = alive_nmethod(next(var)))
267 nmethod* CodeCache::find_nmethod(void* start) {
269 assert(cb == NULL || cb->is_nmethod(), "did not find an nmethod");
270 return (nmethod*)cb;
282 void CodeCache::nmethods_do(void f(nmethod* nm)) {
285 if (nm->is_nmethod()) f((nmethod*)nm);
318 ((nmethod*)cb)->verify_scavenge_root_oops();
328 for (nmethod* cur = scavenge_root_nmethods(); cur != NULL; cur = cur->scavenge_root_link()) {
340 // Perform cur->oops_do(f), maybe just once per nmethod.
349 void CodeCache::add_scavenge_root_nmethod(nmethod* nm) {
357 void CodeCache::drop_scavenge_root_nmethod(nmethod* nm) {
360 nmethod* last = NULL;
361 nmethod* cur = scavenge_root_nmethods();
363 nmethod* next = cur->scavenge_root_link();
382 nmethod* last = NULL;
383 nmethod* cur = scavenge_root_nmethods();
385 nmethod* next = cur->scavenge_root_link();
414 for (nmethod* cur = scavenge_root_nmethods(); cur != NULL; cur = cur->scavenge_root_link()) {
425 nmethod *nm = (nmethod*)cb;
439 nmethod *nm = (nmethod*)cb;
445 call_f = false; // not an nmethod
453 nmethod* CodeCache::find_and_remove_saved_code(methodOop m) {
455 nmethod* saved = _saved_nmethods;
456 nmethod* prev = NULL;
468 saved->print_on(tty, " ### nmethod is reconnected\n");
485 void CodeCache::remove_saved_code(nmethod* nm) {
489 nmethod* saved = _saved_nmethods;
490 nmethod* prev = NULL;
512 void CodeCache::speculatively_disconnect(nmethod* nm) {
518 nm->print_on(tty, " ### nmethod is speculatively disconnected\n");
533 assert(!nmethod::oops_do_marking_is_active(), "oops_do_marking_epilogue must be called");
541 nmethod *nm = (nmethod*)cb;
552 assert(!nmethod::oops_do_marking_is_active(), "oops_do_marking_prologue must be called");
561 nmethod *nm = (nmethod*)cb;
692 nmethod *nm = old_method->code();
746 // If the nmethod has already been made non-entrant and it can be converted
748 // be zombied when it is no longer seen on the stack. Note that the nmethod
835 nmethod* nm = (nmethod*)cb;
880 nmethod* nm = (nmethod*)cb;
928 tty->print_cr("nmethod dependency checking time %f", dependentCheckTime.seconds(),