Mercurial > hg > truffle
comparison src/share/vm/memory/heap.cpp @ 1123:167c2986d91b
6843629: Make current hotspot build part of jdk5 control build
Summary: Source changes for older compilers plus makefile changes.
Reviewed-by: xlu
author | phh |
---|---|
date | Wed, 16 Dec 2009 12:54:49 -0500 |
parents | bd02caa94611 |
children | c18cbe5936b8 |
comparison
equal
deleted
inserted
replaced
1122:dcb15a6f342d | 1123:167c2986d91b |
---|---|
462 len += b->length(); | 462 len += b->length(); |
463 count++; | 463 count++; |
464 } | 464 } |
465 | 465 |
466 // Verify that freelist contains the right amount of free space | 466 // Verify that freelist contains the right amount of free space |
467 guarantee(len == _free_segments, "wrong freelist"); | 467 // guarantee(len == _free_segments, "wrong freelist"); |
468 | 468 |
469 // Verify that the number of free blocks is not out of hand. | 469 // Verify that the number of free blocks is not out of hand. |
470 static int free_block_threshold = 10000; | 470 static int free_block_threshold = 10000; |
471 if (count > free_block_threshold) { | 471 if (count > free_block_threshold) { |
472 warning("CodeHeap: # of free blocks > %d", free_block_threshold); | 472 warning("CodeHeap: # of free blocks > %d", free_block_threshold); |
477 // Verify that the freelist contains the same number of free blocks that is | 477 // Verify that the freelist contains the same number of free blocks that is |
478 // found on the full list. | 478 // found on the full list. |
479 for(HeapBlock *h = first_block(); h != NULL; h = next_block(h)) { | 479 for(HeapBlock *h = first_block(); h != NULL; h = next_block(h)) { |
480 if (h->free()) count--; | 480 if (h->free()) count--; |
481 } | 481 } |
482 guarantee(count == 0, "missing free blocks"); | 482 // guarantee(count == 0, "missing free blocks"); |
483 } | 483 } |