mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 11:34:38 +02:00
8014405: G1: PerRegionTable::fl_mem_size() calculates size of the free list using wrong element sizes
Instead of using a simple sizeof(), ask the PerRegionTable class about its size when iterating over the free list. Reviewed-by: jwilhelm, brutisso
This commit is contained in:
parent
67fdf410da
commit
b33547e347
3 changed files with 23 additions and 1 deletions
|
@ -338,6 +338,7 @@ public:
|
|||
|
||||
// Run unit tests.
|
||||
#ifndef PRODUCT
|
||||
static void test_prt();
|
||||
static void test();
|
||||
#endif
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue