Mercurial > hg > truffle
comparison 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 |
comparison
equal
deleted
inserted
replaced
12033:bd902affe102 | 12080:5888334c9c24 |
---|---|
81 static jlong peak_sweep_fraction_time() { return _peak_sweep_fraction_time; } | 81 static jlong peak_sweep_fraction_time() { return _peak_sweep_fraction_time; } |
82 static jlong total_disconnect_time() { return _total_disconnect_time; } | 82 static jlong total_disconnect_time() { return _total_disconnect_time; } |
83 static jlong peak_disconnect_time() { return _peak_disconnect_time; } | 83 static jlong peak_disconnect_time() { return _peak_disconnect_time; } |
84 | 84 |
85 #ifdef ASSERT | 85 #ifdef ASSERT |
86 static bool is_sweeping(nmethod* which) { return _current == which; } | |
86 // Keep track of sweeper activity in the ring buffer | 87 // Keep track of sweeper activity in the ring buffer |
87 static void record_sweep(nmethod* nm, int line); | 88 static void record_sweep(nmethod* nm, int line); |
88 static void report_events(int id, address entry); | 89 static void report_events(int id, address entry); |
89 static void report_events(); | 90 static void report_events(); |
90 #endif | 91 #endif |