加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
numa_mem_leak.patch 1.43 KB
一键复制 编辑 原始数据 按行查看 历史
kuen 提交于 2021-05-31 16:03 . I3TNRC: fix numa aware mem leak
diff --git a/src/hotspot/os/linux/os_linux.hpp b/src/hotspot/os/linux/os_linux.hpp
index 22f177f17..6b2714f5d 100644
--- a/src/hotspot/os/linux/os_linux.hpp
+++ b/src/hotspot/os/linux/os_linux.hpp
@@ -377,8 +377,8 @@ class Linux {
}
// Check if node is in bound node set.
static bool isnode_in_bound_nodes(int node) {
- if (_numa_get_membind != NULL && _numa_bitmask_isbitset != NULL) {
- return _numa_bitmask_isbitset(_numa_get_membind(), node);
+ if (_numa_membind_bitmask != NULL && _numa_bitmask_isbitset != NULL) {
+ return _numa_bitmask_isbitset(_numa_membind_bitmask, node);
} else {
return false;
}
@@ -387,19 +387,17 @@ class Linux {
// Returns true if bound to a single numa node, otherwise returns false.
static bool isbound_to_single_node() {
int nodes = 0;
- struct bitmask* bmp = NULL;
unsigned int node = 0;
unsigned int highest_node_number = 0;
- if (_numa_get_membind != NULL && _numa_max_node != NULL && _numa_bitmask_isbitset != NULL) {
- bmp = _numa_get_membind();
+ if (_numa_membind_bitmask != NULL && _numa_max_node != NULL && _numa_bitmask_isbitset != NULL) {
highest_node_number = _numa_max_node();
} else {
return false;
}
for (node = 0; node <= highest_node_number; node++) {
- if (_numa_bitmask_isbitset(bmp, node)) {
+ if (_numa_bitmask_isbitset(_numa_membind_bitmask, node)) {
nodes++;
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化