Mercurial > hg > truffle
comparison src/share/vm/runtime/sweeper.cpp @ 2353:1c0cf339481b
7025742: Can not use CodeCache::unallocated_capacity() with fragmented CodeCache
Summary: Use largest_free_block() instead of unallocated_capacity().
Reviewed-by: iveresov, never, ysr
author | kvn |
---|---|
date | Wed, 09 Mar 2011 09:15:16 -0800 |
parents | f95d63e2154a |
children | 1d1603768966 |
comparison
equal
deleted
inserted
replaced
2352:425688247f3d | 2353:1c0cf339481b |
---|---|
424 va_list ap; | 424 va_list ap; |
425 va_start(ap, format); | 425 va_start(ap, format); |
426 tty->vprint(format, ap); | 426 tty->vprint(format, ap); |
427 va_end(ap); | 427 va_end(ap); |
428 } | 428 } |
429 tty->print_cr(" total_blobs='" UINT32_FORMAT "' nmethods='" UINT32_FORMAT "'" | 429 CodeCache::log_state(tty); tty->cr(); |
430 " adapters='" UINT32_FORMAT "' free_code_cache='" SIZE_FORMAT "'", | |
431 CodeCache::nof_blobs(), CodeCache::nof_nmethods(), CodeCache::nof_adapters(), CodeCache::unallocated_capacity()); | |
432 } | 430 } |
433 | 431 |
434 if (LogCompilation && (xtty != NULL)) { | 432 if (LogCompilation && (xtty != NULL)) { |
435 ttyLocker ttyl; | 433 ttyLocker ttyl; |
436 xtty->begin_elem("sweeper state='%s' traversals='" INTX_FORMAT "' ", msg, (intx)traversal_count()); | 434 xtty->begin_elem("sweeper state='%s' traversals='" INTX_FORMAT "' ", msg, (intx)traversal_count()); |
438 va_list ap; | 436 va_list ap; |
439 va_start(ap, format); | 437 va_start(ap, format); |
440 xtty->vprint(format, ap); | 438 xtty->vprint(format, ap); |
441 va_end(ap); | 439 va_end(ap); |
442 } | 440 } |
443 xtty->print(" total_blobs='" UINT32_FORMAT "' nmethods='" UINT32_FORMAT "'" | 441 CodeCache::log_state(xtty); |
444 " adapters='" UINT32_FORMAT "' free_code_cache='" SIZE_FORMAT "'", | |
445 CodeCache::nof_blobs(), CodeCache::nof_nmethods(), CodeCache::nof_adapters(), CodeCache::unallocated_capacity()); | |
446 xtty->stamp(); | 442 xtty->stamp(); |
447 xtty->end_elem(); | 443 xtty->end_elem(); |
448 } | 444 } |
449 } | 445 } |