Mercurial > hg > graal-compiler
comparison src/share/vm/gc_implementation/g1/concurrentMark.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 | 63a4eb8bcd23 58fc1b1523dc |
comparison
equal
deleted
inserted
replaced
12033:bd902affe102 | 12080:5888334c9c24 |
---|---|
1255 size_t _hum_next_live_bytes; | 1255 size_t _hum_next_live_bytes; |
1256 | 1256 |
1257 // Accumulator for the remembered set size | 1257 // Accumulator for the remembered set size |
1258 size_t _total_remset_bytes; | 1258 size_t _total_remset_bytes; |
1259 | 1259 |
1260 // Accumulator for strong code roots memory size | |
1261 size_t _total_strong_code_roots_bytes; | |
1262 | |
1260 static double perc(size_t val, size_t total) { | 1263 static double perc(size_t val, size_t total) { |
1261 if (total == 0) { | 1264 if (total == 0) { |
1262 return 0.0; | 1265 return 0.0; |
1263 } else { | 1266 } else { |
1264 return 100.0 * ((double) val / (double) total); | 1267 return 100.0 * ((double) val / (double) total); |