Mercurial > hg > graal-jvmci-8
diff src/share/vm/memory/metaspaceCounters.cpp @ 6730:5d2156bcb78b
7195789: NPG: assert(used + free == capacity) failed: Accounting is wrong
Reviewed-by: coleenp, jcoomes
author | jmasa |
---|---|
date | Tue, 04 Sep 2012 16:20:28 -0700 |
parents | da91efe96a93 |
children | 942bb29b20b0 |
line wrap: on
line diff
--- a/src/share/vm/memory/metaspaceCounters.cpp Tue Sep 04 18:01:20 2012 -0700 +++ b/src/share/vm/memory/metaspaceCounters.cpp Tue Sep 04 16:20:28 2012 -0700 @@ -35,7 +35,7 @@ size_t min_capacity = MetaspaceAux::min_chunk_size(); size_t max_capacity = MetaspaceAux::reserved_in_bytes(); size_t curr_capacity = MetaspaceAux::capacity_in_bytes(); - size_t used = MetaspaceAux::used_in_bytes(); + size_t used = MetaspaceAux::used_in_bytes_unsafe(); initialize(min_capacity, max_capacity, curr_capacity, used); } @@ -131,7 +131,7 @@ void MetaspaceCounters::update_used() { assert(UsePerfData, "Should not be called unless being used"); - size_t used_in_bytes = MetaspaceAux::used_in_bytes(); + size_t used_in_bytes = MetaspaceAux::used_in_bytes_unsafe(); _used->set_value(used_in_bytes); }