src/share/vm/memory/binaryTreeDictionary.cpp

Print this page
rev 6220 : [mq]: printffmt_size.gc.patch

*** 1203,1219 **** FreeBlockDictionary<Chunk_t>::verify_par_locked(); gclog_or_tty->print("Statistics for BinaryTreeDictionary:\n" "------------------------------------\n"); size_t total_size = total_chunk_size(debug_only(NULL)); size_t free_blocks = num_free_blocks(); ! gclog_or_tty->print("Total Free Space: %d\n", total_size); ! gclog_or_tty->print("Max Chunk Size: %d\n", max_chunk_size()); ! gclog_or_tty->print("Number of Blocks: %d\n", free_blocks); if (free_blocks > 0) { ! gclog_or_tty->print("Av. Block Size: %d\n", total_size/free_blocks); } ! gclog_or_tty->print("Tree Height: %d\n", tree_height()); } // Print census information - counts, births, deaths, etc. // for each list in the tree. Also print some summary // information. --- 1203,1219 ---- FreeBlockDictionary<Chunk_t>::verify_par_locked(); gclog_or_tty->print("Statistics for BinaryTreeDictionary:\n" "------------------------------------\n"); size_t total_size = total_chunk_size(debug_only(NULL)); size_t free_blocks = num_free_blocks(); ! gclog_or_tty->print("Total Free Space: " SIZE_FORMAT "\n", total_size); ! gclog_or_tty->print("Max Chunk Size: " SIZE_FORMAT "\n", max_chunk_size()); ! gclog_or_tty->print("Number of Blocks: " SIZE_FORMAT "\n", free_blocks); if (free_blocks > 0) { ! gclog_or_tty->print("Av. Block Size: " SIZE_FORMAT "\n", total_size/free_blocks); } ! gclog_or_tty->print("Tree Height: " SIZE_FORMAT "\n", tree_height()); } // Print census information - counts, births, deaths, etc. // for each list in the tree. Also print some summary // information.