Mercurial > hg > truffle
diff src/share/vm/runtime/sweeper.hpp @ 12080:5888334c9c24
7145569: G1: optimize nmethods scanning
Summary: Add a list of nmethods to the RSet for a region that contain references into the region. Skip scanning the code cache during root scanning and scan the nmethod lists during RSet scanning instead.
Reviewed-by: tschatzl, brutisso, mgerdin, twisti, kvn
author | johnc |
---|---|
date | Thu, 15 Aug 2013 10:52:18 +0200 |
parents | f2110083203d |
children | 510fbd28919c |
line wrap: on
line diff
--- a/src/share/vm/runtime/sweeper.hpp Thu Aug 15 10:05:50 2013 +0200 +++ b/src/share/vm/runtime/sweeper.hpp Thu Aug 15 10:52:18 2013 +0200 @@ -83,6 +83,7 @@ static jlong peak_disconnect_time() { return _peak_disconnect_time; } #ifdef ASSERT + static bool is_sweeping(nmethod* which) { return _current == which; } // Keep track of sweeper activity in the ring buffer static void record_sweep(nmethod* nm, int line); static void report_events(int id, address entry);