hotspot/src/share/vm/memory/heap.cpp
changeset 7715 12998f95a334
parent 7397 5b173b4ca846
child 8672 26a427ab6f32
equal deleted inserted replaced
7714:f078cdefa674 7715:12998f95a334
   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 }