src/hotspot/share/code/dependencyContext.cpp
changeset 51887 32161fbea3fe
parent 48955 e22914003cf0
child 52781 436097b038a1
equal deleted inserted replaced
51883:7e78be444e68 51887:32161fbea3fe
   216     _perf_total_buckets_deallocated_count->inc(removed);
   216     _perf_total_buckets_deallocated_count->inc(removed);
   217   }
   217   }
   218   return marked;
   218   return marked;
   219 }
   219 }
   220 
   220 
   221 void DependencyContext::wipe() {
       
   222   assert_locked_or_safepoint(CodeCache_lock);
       
   223   nmethodBucket* b = dependencies();
       
   224   set_dependencies(NULL);
       
   225   set_has_stale_entries(false);
       
   226   while (b != NULL) {
       
   227     nmethodBucket* next = b->next();
       
   228     delete b;
       
   229     b = next;
       
   230   }
       
   231 }
       
   232 
       
   233 #ifndef PRODUCT
   221 #ifndef PRODUCT
   234 void DependencyContext::print_dependent_nmethods(bool verbose) {
   222 void DependencyContext::print_dependent_nmethods(bool verbose) {
   235   int idx = 0;
   223   int idx = 0;
   236   for (nmethodBucket* b = dependencies(); b != NULL; b = b->next()) {
   224   for (nmethodBucket* b = dependencies(); b != NULL; b = b->next()) {
   237     nmethod* nm = b->get_nmethod();
   225     nmethod* nm = b->get_nmethod();