comparison src/share/vm/memory/heap.cpp @ 2091:51bd2d261853

7008325: CodeCache exhausted on sparc starting from hs20b04 Summary: remove clear_scratch_buffer_blob and let init_scratch_buffer_blob free and allocate a new blob if required. Reviewed-by: twisti
author kvn
date Wed, 29 Dec 2010 10:41:43 -0800
parents f95d63e2154a
children 1c0cf339481b
comparison
equal deleted inserted replaced
2090:2ddb2fab82cb 2091:51bd2d261853
313 l -= size(_free_segments); 313 l -= size(_free_segments);
314 314
315 return l; 315 return l;
316 } 316 }
317 317
318 size_t CodeHeap::largest_free_block() const {
319 size_t len = 0;
320 for (FreeBlock* b = _freelist; b != NULL; b = b->link()) {
321 if (b->length() > len)
322 len = b->length();
323 }
324 return size(len);
325 }
326
318 // Free list management 327 // Free list management
319 328
320 FreeBlock *CodeHeap::following_block(FreeBlock *b) { 329 FreeBlock *CodeHeap::following_block(FreeBlock *b) {
321 return (FreeBlock*)(((address)b) + _segment_size * b->length()); 330 return (FreeBlock*)(((address)b) + _segment_size * b->length());
322 } 331 }