< prev index next >
src/share/vm/runtime/perfMemory.cpp
Print this page
rev 9019 : [mq]: format.patch
@@ -34,12 +34,10 @@
#include "runtime/perfMemory.hpp"
#include "runtime/safepoint.hpp"
#include "runtime/statSampler.hpp"
#include "utilities/globalDefinitions.hpp"
-PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC
-
// Prefix of performance data file.
const char PERFDATA_NAME[] = "hsperfdata";
// Add 1 for the '_' character between PERFDATA_NAME and pid. The '\0' terminating
// character will be included in the sizeof(PERFDATA_NAME) operation.
@@ -93,12 +91,12 @@
size_t capacity = align_size_up(PerfDataMemorySize,
os::vm_allocation_granularity());
if (PerfTraceMemOps) {
- tty->print("PerfDataMemorySize = " SIZE_FORMAT ","
- " os::vm_allocation_granularity = " SIZE_FORMAT ","
+ tty->print("PerfDataMemorySize = " INTX_FORMAT ","
+ " os::vm_allocation_granularity = %d,"
" adjusted size = " SIZE_FORMAT "\n",
PerfDataMemorySize,
os::vm_allocation_granularity(),
capacity);
}
@@ -127,11 +125,11 @@
// the PerfMemory region was created as expected.
if (PerfTraceMemOps) {
tty->print("PerfMemory created: address = " INTPTR_FORMAT ","
" size = " SIZE_FORMAT "\n",
- (void*)_start,
+ p2i(_start),
_capacity);
}
_prologue = (PerfDataPrologue *)_start;
_end = _start + _capacity;
< prev index next >