Mercurial > hg > truffle
comparison src/share/vm/gc_implementation/g1/concurrentMark.cpp @ 20297:ca8b8e21e2ca
8050973: CMS/G1 GC: add missing Resource and Handle mark
Summary: Add Resource/HandleMark in the work() method of some AbstractGangTask to reclaim these resources earlier.
Reviewed-by: tschatzl, goetz
author | mdoerr |
---|---|
date | Tue, 29 Jul 2014 10:26:09 +0200 |
parents | 7df07d855c8e |
children | bfba6779654b |
comparison
equal
deleted
inserted
replaced
20296:a3953c777565 | 20297:ca8b8e21e2ca |
---|---|
2401 ReferenceProcessor* rp = _g1h->ref_processor_cm(); | 2401 ReferenceProcessor* rp = _g1h->ref_processor_cm(); |
2402 assert(rp->processing_is_mt(), "shouldn't be here otherwise"); | 2402 assert(rp->processing_is_mt(), "shouldn't be here otherwise"); |
2403 } | 2403 } |
2404 | 2404 |
2405 virtual void work(uint worker_id) { | 2405 virtual void work(uint worker_id) { |
2406 ResourceMark rm; | |
2407 HandleMark hm; | |
2406 CMTask* task = _cm->task(worker_id); | 2408 CMTask* task = _cm->task(worker_id); |
2407 G1CMIsAliveClosure g1_is_alive(_g1h); | 2409 G1CMIsAliveClosure g1_is_alive(_g1h); |
2408 G1CMKeepAliveAndDrainClosure g1_par_keep_alive(_cm, task, false /* is_serial */); | 2410 G1CMKeepAliveAndDrainClosure g1_par_keep_alive(_cm, task, false /* is_serial */); |
2409 G1CMDrainMarkingStackClosure g1_par_drain(_cm, task, false /* is_serial */); | 2411 G1CMDrainMarkingStackClosure g1_par_drain(_cm, task, false /* is_serial */); |
2410 | 2412 |