openjdk-17/Clean-up-JDK17-codeDEX-fix-Non-static-numa_node_dist.patch
2022-04-27 11:33:31 +08:00

26 lines
868 B
Diff

From a012a1db673ee941cf71e52c2a7dbbd42e841a5c Mon Sep 17 00:00:00 2001
Date: Thu, 16 Dec 2021 11:17:31 +0800
Subject: [PATCH] Clean up JDK17 codeDEX fix Non-static numa_node_distance is
not initialized
---
src/hotspot/share/gc/g1/g1NUMA.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/hotspot/share/gc/g1/g1NUMA.cpp b/src/hotspot/share/gc/g1/g1NUMA.cpp
index 2c2431a39..be7a7d254 100644
--- a/src/hotspot/share/gc/g1/g1NUMA.cpp
+++ b/src/hotspot/share/gc/g1/g1NUMA.cpp
@@ -83,7 +83,7 @@ bool G1NUMA::use_nearest_node() const {
G1NUMA::G1NUMA() :
_node_id_to_index_map(NULL), _len_node_id_to_index_map(0),
- _node_ids(NULL), _num_active_node_ids(0), _use_nearest(false),
+ _node_ids(NULL), _num_active_node_ids(0), _numa_node_distance(NULL), _use_nearest(false),
_region_size(0), _page_size(0), _stats(NULL) {
}
--
2.23.0