mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 14:24:46 +02:00
7125516: G1: ~ConcurrentMark() frees incorrectly
Replaced the code with a ShouldNotReachHere Reviewed-by: tonyp, jmasa
This commit is contained in:
parent
c7ec06ba8e
commit
24e4bf6a80
1 changed files with 2 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue