mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
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:
parent
7774fe7ed1
commit
071c3a3924
2 changed files with 4 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue