提交 1baf2cd4 编写于 作者: S stefank

7125516: G1: ~ConcurrentMark() frees incorrectly

Summary: Replaced the code with a ShouldNotReachHere
Reviewed-by: tonyp, jmasa
上级 5cae5ef6
......@@ -726,12 +726,8 @@ void ConcurrentMark::set_non_marking_state() {
}
ConcurrentMark::~ConcurrentMark() {
for (int i = 0; i < (int) _max_task_num; ++i) {
delete _task_queues->queue(i);
delete _tasks[i];
}
delete _task_queues;
FREE_C_HEAP_ARRAY(CMTask*, _max_task_num);
// The ConcurrentMark instance is never freed.
ShouldNotReachHere();
}
// This closure is used to mark refs into the g1 generation
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册