changeset 7715 | 12998f95a334 |
parent 7397 | 5b173b4ca846 |
child 8672 | 26a427ab6f32 |
--- a/hotspot/src/share/vm/memory/heap.cpp Tue Dec 28 17:34:02 2010 -0800 +++ b/hotspot/src/share/vm/memory/heap.cpp Wed Dec 29 10:41:43 2010 -0800 @@ -315,6 +315,15 @@ return l; } +size_t CodeHeap::largest_free_block() const { + size_t len = 0; + for (FreeBlock* b = _freelist; b != NULL; b = b->link()) { + if (b->length() > len) + len = b->length(); + } + return size(len); +} + // Free list management FreeBlock *CodeHeap::following_block(FreeBlock *b) {