--- a/hotspot/src/share/vm/prims/jniCheck.cpp Thu Dec 22 17:26:02 2016 -0800
+++ b/hotspot/src/share/vm/prims/jniCheck.cpp Thu Dec 22 16:51:25 2016 +0100
@@ -238,8 +238,8 @@
size_t live_handles = handles->get_number_of_live_handles();
if (live_handles > planned_capacity) {
IN_VM(
- tty->print_cr("WARNING: JNI local refs: %zu, exceeds capacity: %zu",
- live_handles, planned_capacity);
+ tty->print_cr("WARNING: JNI local refs: " SIZE_FORMAT ", exceeds capacity: " SIZE_FORMAT,
+ live_handles, planned_capacity);
thr->print_stack();
)
// Complain just the once, reset to current + warn threshold