mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-28 03:58:21 +00:00
8367268: Remove unused os::numa_topology_changed()
Reviewed-by: ayang, dholmes
This commit is contained in:
parent
0b3a303053
commit
3d679087b0
@ -1753,10 +1753,6 @@ void os::numa_make_global(char *addr, size_t bytes) {
|
||||
void os::numa_make_local(char *addr, size_t bytes, int lgrp_hint) {
|
||||
}
|
||||
|
||||
bool os::numa_topology_changed() {
|
||||
return false;
|
||||
}
|
||||
|
||||
size_t os::numa_get_groups_num() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
@ -1599,8 +1599,6 @@ void os::numa_make_global(char *addr, size_t bytes) {
|
||||
void os::numa_make_local(char *addr, size_t bytes, int lgrp_hint) {
|
||||
}
|
||||
|
||||
bool os::numa_topology_changed() { return false; }
|
||||
|
||||
size_t os::numa_get_groups_num() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
@ -2988,8 +2988,6 @@ void os::numa_make_local(char *addr, size_t bytes, int lgrp_hint) {
|
||||
Linux::numa_tonode_memory(addr, bytes, lgrp_hint);
|
||||
}
|
||||
|
||||
bool os::numa_topology_changed() { return false; }
|
||||
|
||||
size_t os::numa_get_groups_num() {
|
||||
// Return just the number of nodes in which it's possible to allocate memory
|
||||
// (in numa terminology, configured nodes).
|
||||
|
||||
@ -3794,7 +3794,6 @@ size_t os::pd_pretouch_memory(void* first, void* last, size_t page_size) {
|
||||
|
||||
void os::numa_make_global(char *addr, size_t bytes) { }
|
||||
void os::numa_make_local(char *addr, size_t bytes, int lgrp_hint) { }
|
||||
bool os::numa_topology_changed() { return false; }
|
||||
size_t os::numa_get_groups_num() { return MAX2(numa_node_list_holder.get_count(), 1); }
|
||||
int os::numa_get_group_id() { return 0; }
|
||||
size_t os::numa_get_leaf_groups(uint *ids, size_t size) {
|
||||
|
||||
@ -540,7 +540,6 @@ class os: AllStatic {
|
||||
static void numa_make_global(char *addr, size_t bytes);
|
||||
static size_t numa_get_groups_num();
|
||||
static size_t numa_get_leaf_groups(uint *ids, size_t size);
|
||||
static bool numa_topology_changed();
|
||||
static int numa_get_group_id();
|
||||
static int numa_get_group_id_for_address(const void* address);
|
||||
static bool numa_get_group_ids_for_range(const void** addresses, int* lgrp_ids, size_t count);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user