Mercurial > hg > graal-compiler
diff src/share/vm/utilities/growableArray.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 | 4735d2c84362 |
children | de6a9e811145 |
line wrap: on
line diff
--- a/src/share/vm/utilities/growableArray.hpp Thu Aug 15 10:05:50 2013 +0200 +++ b/src/share/vm/utilities/growableArray.hpp Thu Aug 15 10:52:18 2013 +0200 @@ -194,6 +194,7 @@ void clear() { _len = 0; } int length() const { return _len; } + int max_length() const { return _max; } void trunc_to(int l) { assert(l <= _len,"cannot increase length"); _len = l; } bool is_empty() const { return _len == 0; } bool is_nonempty() const { return _len != 0; }