2438 used_bytes / K, |
2438 used_bytes / K, |
2439 free_bytes / K, |
2439 free_bytes / K, |
2440 free_chunks_capacity_bytes / K, |
2440 free_chunks_capacity_bytes / K, |
2441 used_and_free / K, |
2441 used_and_free / K, |
2442 capacity_bytes / K); |
2442 capacity_bytes / K); |
2443 assert(used_and_free == capacity_bytes, "Accounting is wrong"); |
2443 // Accounting can only be correct if we got the values during a safepoint |
|
2444 assert(!SafepointSynchronize::is_at_safepoint() || used_and_free == capacity_bytes, "Accounting is wrong"); |
2444 } |
2445 } |
2445 |
2446 |
2446 // Print total fragmentation for class and data metaspaces separately |
2447 // Print total fragmentation for class and data metaspaces separately |
2447 void MetaspaceAux::print_waste(outputStream* out) { |
2448 void MetaspaceAux::print_waste(outputStream* out) { |
2448 |
2449 |