1 Star 0 Fork 75

李经纬 / openjdk-1.8.0

forked from src-openEuler / openjdk-1.8.0 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
fix_G1GC_memory_leak_in_numa.patch 1.29 KB
一键复制 编辑 原始数据 按行查看 历史
kuen 提交于 2021-06-16 16:24 . I3VT8V: fix G1GC memory leak in numa
diff --git a/hotspot/src/share/vm/gc_implementation/g1/g1Allocator.hpp b/hotspot/src/share/vm/gc_implementation/g1/g1Allocator.hpp
index 9b26168a8..f6a80bf8d 100644
--- a/hotspot/src/share/vm/gc_implementation/g1/g1Allocator.hpp
+++ b/hotspot/src/share/vm/gc_implementation/g1/g1Allocator.hpp
@@ -45,6 +45,7 @@ protected:
public:
G1Allocator(G1CollectedHeap* heap) :
_g1h(heap), _summary_bytes_used(0) { }
+ virtual ~G1Allocator() { }
// Node index of current thread.
virtual uint current_node_index() const = 0;
@@ -126,7 +127,7 @@ protected:
public:
G1DefaultAllocator(G1CollectedHeap* heap);
- ~G1DefaultAllocator();
+ virtual ~G1DefaultAllocator();
uint current_node_index() const;
uint num_nodes() { return (uint)_num_alloc_regions; }
@@ -253,6 +254,7 @@ protected:
public:
G1ParGCAllocator(G1CollectedHeap* g1h);
+ virtual ~G1ParGCAllocator() { }
static G1ParGCAllocator* create_allocator(G1CollectedHeap* g1h);
@@ -308,7 +310,7 @@ class G1DefaultParGCAllocator : public G1ParGCAllocator {
public:
G1DefaultParGCAllocator(G1CollectedHeap* g1h);
- ~G1DefaultParGCAllocator();
+ virtual ~G1DefaultParGCAllocator();
virtual G1ParGCAllocBuffer* alloc_buffer(InCSetState dest, AllocationContext_t context, uint node_index) {
assert(dest.is_valid(),
1
https://gitee.com/marsCatXDU/openjdk-1.8.0.git
git@gitee.com:marsCatXDU/openjdk-1.8.0.git
marsCatXDU
openjdk-1.8.0
openjdk-1.8.0
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891