src/hotspot/share/runtime/sweeper.cpp
changeset 48007 ab3959df2115
parent 47216 71c04702a3d5
child 49360 886acec3b4c6
equal deleted inserted replaced
48006:e79838cf4613 48007:ab3959df2115
   697 }
   697 }
   698 
   698 
   699 
   699 
   700 void NMethodSweeper::possibly_flush(nmethod* nm) {
   700 void NMethodSweeper::possibly_flush(nmethod* nm) {
   701   if (UseCodeCacheFlushing) {
   701   if (UseCodeCacheFlushing) {
   702     if (!nm->is_locked_by_vm() && !nm->is_native_method()) {
   702     if (!nm->is_locked_by_vm() && !nm->is_native_method() && !nm->is_not_installed()) {
   703       bool make_not_entrant = false;
   703       bool make_not_entrant = false;
   704 
   704 
   705       // Do not make native methods not-entrant
   705       // Do not make native methods not-entrant
   706       nm->dec_hotness_counter();
   706       nm->dec_hotness_counter();
   707       // Get the initial value of the hotness counter. This value depends on the
   707       // Get the initial value of the hotness counter. This value depends on the