提交 92d33e09 编写于 作者: M mdoerr

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
上级 e5fc937f
......@@ -6051,6 +6051,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,
......
......@@ -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 */);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册