Mercurial > hg > graal-compiler
comparison src/share/vm/memory/metaspace.cpp @ 8738:1c88b99a2b01
8009282: Assertion "assert(used_and_free == capacity_bytes) failed: Accounting is wrong" failed with -XX:+Verbose -XX:+TraceMetadataChunkAllocation
Summary: Assertion is only valid when at a safepoint, adjust accordingly.
Reviewed-by: stefank, jmasa, tamao
author | mgerdin |
---|---|
date | Tue, 12 Mar 2013 09:42:24 +0100 |
parents | a83cd101fd62 |
children | 15401203db6b 79af1312fc2c |
comparison
equal
deleted
inserted
replaced
8737:71f619500f9b | 8738:1c88b99a2b01 |
---|---|
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 |