Mercurial > hg > graal-compiler
diff src/share/vm/services/memTrackWorker.hpp @ 7971:4102b59539ce
8005012: Add WB APIs to better support NMT testing
Summary: Add WB API functions to enable better NMT testing
Reviewed-by: dholmes, zgu
author | ctornqvi |
---|---|
date | Fri, 01 Feb 2013 23:48:08 +0100 |
parents | ecd24264898b |
children | 35f8765422b9 |
line wrap: on
line diff
--- a/src/share/vm/services/memTrackWorker.hpp Fri Feb 01 13:30:12 2013 -0500 +++ b/src/share/vm/services/memTrackWorker.hpp Fri Feb 01 23:48:08 2013 +0100 @@ -107,6 +107,7 @@ NOT_PRODUCT(int _merge_count;) NOT_PRODUCT(int _last_gen_in_use;) + // how many generations are queued inline int generations_in_use() const { return (_tail >= _head ? (_tail - _head + 1) : (MAX_GENERATIONS - (_head - _tail) + 1)); }