1.1 --- a/src/share/vm/memory/binaryTreeDictionary.cpp Thu May 15 18:23:26 2014 -0400 1.2 +++ b/src/share/vm/memory/binaryTreeDictionary.cpp Thu May 22 15:52:41 2014 -0400 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 2001, 2013, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 2001, 2014, Oracle and/or its affiliates. All rights reserved. 1.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 * 1.9 * This code is free software; you can redistribute it and/or modify it 1.10 @@ -1205,13 +1205,13 @@ 1.11 "------------------------------------\n"); 1.12 size_t total_size = total_chunk_size(debug_only(NULL)); 1.13 size_t free_blocks = num_free_blocks(); 1.14 - gclog_or_tty->print("Total Free Space: %d\n", total_size); 1.15 - gclog_or_tty->print("Max Chunk Size: %d\n", max_chunk_size()); 1.16 - gclog_or_tty->print("Number of Blocks: %d\n", free_blocks); 1.17 + gclog_or_tty->print("Total Free Space: " SIZE_FORMAT "\n", total_size); 1.18 + gclog_or_tty->print("Max Chunk Size: " SIZE_FORMAT "\n", max_chunk_size()); 1.19 + gclog_or_tty->print("Number of Blocks: " SIZE_FORMAT "\n", free_blocks); 1.20 if (free_blocks > 0) { 1.21 - gclog_or_tty->print("Av. Block Size: %d\n", total_size/free_blocks); 1.22 + gclog_or_tty->print("Av. Block Size: " SIZE_FORMAT "\n", total_size/free_blocks); 1.23 } 1.24 - gclog_or_tty->print("Tree Height: %d\n", tree_height()); 1.25 + gclog_or_tty->print("Tree Height: " SIZE_FORMAT "\n", tree_height()); 1.26 } 1.27 1.28 // Print census information - counts, births, deaths, etc. 1.29 @@ -1318,7 +1318,7 @@ 1.30 for (Chunk_t* fc = fl->head(); fc != NULL; 1.31 fc = fc->next()) { 1.32 _st->print_cr("\t[" PTR_FORMAT "," PTR_FORMAT ") %s", 1.33 - fc, (HeapWord*)fc + sz, 1.34 + p2i(fc), p2i((HeapWord*)fc + sz), 1.35 fc->cantCoalesce() ? "\t CC" : ""); 1.36 } 1.37 }