6723228: NUMA allocator: assert(lgrp_id != -1, "No lgrp_id set")

6723229: NUMA allocator: assert(lgrp_num > 0, "There should be at least one locality group")

The fix takes care of the assertion triggered during TLAB resizing after reconfiguration. Also it now handles a defect in the topology graph, in which a single leaf node doesn't have memory.

Reviewed-by: jmasa
This commit is contained in:
Igor Veresov 2008-07-17 10:26:33 -07:00
parent e9e432633b
commit 1193f0f9db
4 changed files with 48 additions and 3 deletions

View file

@ -2658,6 +2658,12 @@ size_t os::numa_get_leaf_groups(int *ids, size_t size) {
top += r;
cur++;
}
if (bottom == 0) {
// Handle a situation, when the OS reports no memory available.
// Assume UMA architecture.
ids[0] = 0;
return 1;
}
return bottom;
}