Skip to content

Commit dfaa891

Browse files
committedJan 6, 2025
8346569: Shenandoah: Worker initializes ShenandoahThreadLocalData twice results in memory leak
Reviewed-by: wkemper, shade
1 parent f1d85ab commit dfaa891

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/hotspot/share/gc/shenandoah/shenandoahWorkGroup.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/*
22
* Copyright (c) 2017, 2021, Red Hat, Inc. All rights reserved.
3+
* Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
34
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
45
*
56
* This code is free software; you can redistribute it and/or modify it
@@ -73,7 +74,6 @@ ShenandoahPushWorkerScope::~ShenandoahPushWorkerScope() {
7374
}
7475

7576
void ShenandoahWorkerThreads::on_create_worker(WorkerThread* worker) {
76-
ShenandoahThreadLocalData::create(worker);
7777
if (_initialize_gclab) {
7878
ShenandoahThreadLocalData::initialize_gclab(worker);
7979
}

0 commit comments

Comments
 (0)
Please sign in to comment.