JDK-8056011 : Zero build is broken due to format specifier issue
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 8u40
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2014-08-26
  • Updated: 2015-03-31
  • Resolved: 2015-03-31
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9Resolved
Related Reports
Duplicate :  
Relates :  
Description
Andrew Hughes reports:

I have a fix for 8u, but not
sure how applicable it is for 9. I haven't had a chance to look at that yet.

Actually, it's just this:

diff -r 6533ac845e18 -r c75d6ce2e98b src/cpu/zero/vm/frame_zero.cpp
--- a/src/cpu/zero/vm/frame_zero.cpp	Mon Jun 30 14:58:52 2014 -0400
+++ b/src/cpu/zero/vm/frame_zero.cpp	Tue Aug 19 22:31:00 2014 +0100
@@ -216,7 +216,7 @@
     valuebuf[buflen - 1] = '\0';
 
     // Print the result
-    st->print_cr(" " PTR_FORMAT ": %-21s = %s", addr, fieldbuf, valuebuf);
+    st->print_cr(" " PTR_FORMAT ": %-21s = %s", p2i(addr), fieldbuf, valuebuf);
   }
 }

I'm guessing 8048169 covered the PPC port use of the interpreter, but this
file is only built as part of Zero.

Comments
I fixed this compilation issue when I fixed the SafeFetch bug.
31-03-2015