mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 10:34:38 +02:00
8068451: Kitchensink fails with assert(_size >= sz) failed: Negative size
Need ThreadCritical lock around chunk pool cleaning and copying for snapshot Reviewed-by: lfoltan, gtriantafill, hseigel
This commit is contained in:
parent
cc1c11c366
commit
8df6ac1794
5 changed files with 31 additions and 25 deletions
|
@ -52,7 +52,7 @@ size_t MallocMemorySnapshot::total_arena() const {
|
|||
}
|
||||
|
||||
// Make adjustment by subtracting chunks used by arenas
|
||||
// from total chunks to get total free chunck size
|
||||
// from total chunks to get total free chunk size
|
||||
void MallocMemorySnapshot::make_adjustment() {
|
||||
size_t arena_size = total_arena();
|
||||
int chunk_idx = NMTUtil::flag_to_index(mtChunk);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue