86 static bool is_sweeping(nmethod* which) { return _current == which; } 87 // Keep track of sweeper activity in the ring buffer 88 static void record_sweep(nmethod* nm, int line); 89 static void report_events(int id, address entry); 90 static void report_events(); 91 #endif 92 93 static void scan_stacks(); // Invoked at the end of each safepoint 94 static void sweep_code_cache(); // Concurrent part of sweep job 95 static void possibly_sweep(); // Compiler threads call this to sweep 96 97 static void notify(nmethod* nm) { 98 // Request a new sweep of the code cache from the beginning. No 99 // need to synchronize the setting of this flag since it only 100 // changes to false at safepoint so we can never overwrite it with false. 101 _resweep = true; 102 } 103 104 static void handle_full_code_cache(bool is_full); // Called by compilers who fail to allocate 105 static void speculative_disconnect_nmethods(bool was_full); // Called by vm op to deal with alloc failure 106 }; 107 108 #endif // SHARE_VM_RUNTIME_SWEEPER_HPP | 86 static bool is_sweeping(nmethod* which) { return _current == which; } 87 // Keep track of sweeper activity in the ring buffer 88 static void record_sweep(nmethod* nm, int line); 89 static void report_events(int id, address entry); 90 static void report_events(); 91 #endif 92 93 static void scan_stacks(); // Invoked at the end of each safepoint 94 static void sweep_code_cache(); // Concurrent part of sweep job 95 static void possibly_sweep(); // Compiler threads call this to sweep 96 97 static void notify(nmethod* nm) { 98 // Request a new sweep of the code cache from the beginning. No 99 // need to synchronize the setting of this flag since it only 100 // changes to false at safepoint so we can never overwrite it with false. 101 _resweep = true; 102 } 103 104 static void handle_full_code_cache(bool is_full); // Called by compilers who fail to allocate 105 static void speculative_disconnect_nmethods(bool was_full); // Called by vm op to deal with alloc failure 106 107 // Printing/debugging 108 static void print(); 109 }; 110 111 #endif // SHARE_VM_RUNTIME_SWEEPER_HPP |