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:
Thomas Schatzl 2013-05-21 11:30:14 +02:00
parent 67fdf410da
commit b33547e347
3 changed files with 23 additions and 1 deletions

View file

@ -338,6 +338,7 @@ public:
// Run unit tests.
#ifndef PRODUCT
static void test_prt();
static void test();
#endif
};