< prev index next >

src/share/vm/gc/shared/genCollectedHeap.cpp

Print this page
rev 13281 : [mq]: CollectedHeap_register_nmethod_v2


1298   // iterate over generations getting the oldest
1299   // time that a generation was collected
1300   generation_iterate(&tolgc_cl, false);
1301 
1302   jlong retVal = now - tolgc_cl.time();
1303   if (retVal < 0) {
1304     log_warning(gc)("millis_since_last_gc() would return : " JLONG_FORMAT
1305        ". returning zero instead.", retVal);
1306     return 0;
1307   }
1308   return retVal;
1309 }
1310 
1311 void GenCollectedHeap::stop() {
1312 #if INCLUDE_ALL_GCS
1313   if (UseConcMarkSweepGC) {
1314     ConcurrentMarkSweepThread::cmst()->stop();
1315   }
1316 #endif
1317 }










1298   // iterate over generations getting the oldest
1299   // time that a generation was collected
1300   generation_iterate(&tolgc_cl, false);
1301 
1302   jlong retVal = now - tolgc_cl.time();
1303   if (retVal < 0) {
1304     log_warning(gc)("millis_since_last_gc() would return : " JLONG_FORMAT
1305        ". returning zero instead.", retVal);
1306     return 0;
1307   }
1308   return retVal;
1309 }
1310 
1311 void GenCollectedHeap::stop() {
1312 #if INCLUDE_ALL_GCS
1313   if (UseConcMarkSweepGC) {
1314     ConcurrentMarkSweepThread::cmst()->stop();
1315   }
1316 #endif
1317 }
1318 
1319 void GenCollectedHeap::register_nmethod(nmethod* nm) {
1320   CodeCache::register_scavenge_root_nmethod(nm);
1321 }
1322 
1323 void GenCollectedHeap::verify_nmethod_roots(nmethod* nmethod) {
1324   nmethod->verify_scavenge_root_oops();
1325 }
< prev index next >