comparison src/share/vm/memory/binaryTreeDictionary.hpp @ 6886:476718ea6759

8001584: NPG: Incorrect assertion in BinaryTreeDictionary::get_chunk() Reviewed-by: johnc, tamao
author jmasa
date Thu, 25 Oct 2012 12:59:37 -0700
parents 685df3c6f84b
children 3c327c2b6782
comparison
equal deleted inserted replaced
6885:685df3c6f84b 6886:476718ea6759
257 FreeBlockDictionary<Chunk_t>::verify_par_locked(); 257 FreeBlockDictionary<Chunk_t>::verify_par_locked();
258 Chunk_t* res = get_chunk_from_tree(size, dither); 258 Chunk_t* res = get_chunk_from_tree(size, dither);
259 assert(res == NULL || res->is_free(), 259 assert(res == NULL || res->is_free(),
260 "Should be returning a free chunk"); 260 "Should be returning a free chunk");
261 assert(dither != FreeBlockDictionary<Chunk_t>::exactly || 261 assert(dither != FreeBlockDictionary<Chunk_t>::exactly ||
262 res->size() == size, "Not correct size"); 262 res == NULL || res->size() == size, "Not correct size");
263 return res; 263 return res;
264 } 264 }
265 265
266 void return_chunk(Chunk_t* chunk) { 266 void return_chunk(Chunk_t* chunk) {
267 FreeBlockDictionary<Chunk_t>::verify_par_locked(); 267 FreeBlockDictionary<Chunk_t>::verify_par_locked();