Mercurial > hg > truffle
comparison src/share/vm/memory/metaspace.cpp @ 11966:83ca9dc4564d
8019845: Memory leak during class redefinition
Reviewed-by: acorn, jmasa, coleenp, dcubed, mgerdin
author | fparain |
---|---|
date | Fri, 26 Jul 2013 15:24:32 +0000 |
parents | cedf20e2a655 |
children | 740e263c80c6 |
comparison
equal
deleted
inserted
replaced
11965:b6baf306e698 | 11966:83ca9dc4564d |
---|---|
2252 } | 2252 } |
2253 } | 2253 } |
2254 | 2254 |
2255 void SpaceManager::deallocate(MetaWord* p, size_t word_size) { | 2255 void SpaceManager::deallocate(MetaWord* p, size_t word_size) { |
2256 assert_lock_strong(_lock); | 2256 assert_lock_strong(_lock); |
2257 size_t raw_word_size = get_raw_word_size(word_size); | |
2257 size_t min_size = TreeChunk<Metablock, FreeList>::min_size(); | 2258 size_t min_size = TreeChunk<Metablock, FreeList>::min_size(); |
2258 assert(word_size >= min_size, | 2259 assert(raw_word_size >= min_size, |
2259 err_msg("Should not deallocate dark matter " SIZE_FORMAT, word_size)); | 2260 err_msg("Should not deallocate dark matter " SIZE_FORMAT, word_size)); |
2260 block_freelists()->return_block(p, word_size); | 2261 block_freelists()->return_block(p, raw_word_size); |
2261 } | 2262 } |
2262 | 2263 |
2263 // Adds a chunk to the list of chunks in use. | 2264 // Adds a chunk to the list of chunks in use. |
2264 void SpaceManager::add_chunk(Metachunk* new_chunk, bool make_current) { | 2265 void SpaceManager::add_chunk(Metachunk* new_chunk, bool make_current) { |
2265 | 2266 |