mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 11:34:38 +02:00
8220312: Implementation: NUMA-Aware Memory Allocation for G1, Logging (3/3)
Reviewed-by: kbarrett, sjohanss, tschatzl
This commit is contained in:
parent
eaa6355cb0
commit
46c3d43f83
25 changed files with 918 additions and 57 deletions
|
@ -192,6 +192,10 @@ public:
|
|||
return _free_list.length();
|
||||
}
|
||||
|
||||
uint num_free_regions(uint node_index) const {
|
||||
return _free_list.length(node_index);
|
||||
}
|
||||
|
||||
size_t total_free_bytes() const {
|
||||
return num_free_regions() * HeapRegion::GrainBytes;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue