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

@ -2403,6 +2403,8 @@ public:
}
virtual void work(uint worker_id) {
ResourceMark rm;
HandleMark hm;
CMTask* task = _cm->task(worker_id);
G1CMIsAliveClosure g1_is_alive(_g1h);
G1CMKeepAliveAndDrainClosure g1_par_keep_alive(_cm, task, false /* is_serial */);