--- a/hotspot/src/share/vm/runtime/jniHandles.cpp Thu Oct 08 12:44:12 2015 +0200
+++ b/hotspot/src/share/vm/runtime/jniHandles.cpp Fri Oct 09 09:42:33 2015 +0200
@@ -30,8 +30,6 @@
#include "runtime/mutexLocker.hpp"
#include "runtime/thread.inline.hpp"
-PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC
-
JNIHandleBlock* JNIHandles::_global_handles = NULL;
JNIHandleBlock* JNIHandles::_weak_global_handles = NULL;
oop JNIHandles::_deleted_handle = NULL;
@@ -281,7 +279,7 @@
_blocks_allocated++;
if (TraceJNIHandleAllocation) {
tty->print_cr("JNIHandleBlock " INTPTR_FORMAT " allocated (%d total blocks)",
- block, _blocks_allocated);
+ p2i(block), _blocks_allocated);
}
if (ZapJNIHandleArea) block->zap();
#ifndef PRODUCT
@@ -396,7 +394,7 @@
} else {
// The weakly referenced object is not alive, clear the reference by storing NULL
if (TraceReferenceGC) {
- tty->print_cr("Clearing JNI weak reference (" INTPTR_FORMAT ")", root);
+ tty->print_cr("Clearing JNI weak reference (" INTPTR_FORMAT ")", p2i(root));
}
*root = NULL;
}
@@ -504,7 +502,7 @@
}
if (TraceJNIHandleAllocation) {
tty->print_cr("Rebuild free list JNIHandleBlock " INTPTR_FORMAT " blocks=%d used=%d free=%d add=%d",
- this, blocks, total-free, free, _allocate_before_rebuild);
+ p2i(this), blocks, total-free, free, _allocate_before_rebuild);
}
}