8220312: Implementation: NUMA-Aware Memory Allocation for G1, Logging (3/3)

Reviewed-by: kbarrett, sjohanss, tschatzl
This commit is contained in:
Sangheon Kim 2019-11-13 10:51:41 -08:00
parent eaa6355cb0
commit 46c3d43f83
25 changed files with 918 additions and 57 deletions

View file

@ -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;
}