8050973: CMS/G1 GC: add missing Resource and Handle mark

Add Resource/HandleMark in the work() method of some AbstractGangTask to reclaim these resources earlier.

Reviewed-by: tschatzl, goetz
This commit is contained in:
Martin Doerr 2014-07-29 10:26:09 +02:00
parent 7774fe7ed1
commit 071c3a3924
2 changed files with 4 additions and 0 deletions

View file

@ -5987,6 +5987,8 @@ public:
};
void CMSRefProcTaskProxy::work(uint worker_id) {
ResourceMark rm;
HandleMark hm;
assert(_collector->_span.equals(_span), "Inconsistency in _span");
CMSParKeepAliveClosure par_keep_alive(_collector, _span,
_mark_bit_map,