JDK-2225326 : 32/64 bit type issues on Windows after Mac OS X port
  • Type: Backport
  • Backport of: JDK-7172708
  • Component: hotspot
  • Sub-Component: runtime
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2012-06-07
  • Updated: 2013-07-19
  • Resolved: 2012-06-16
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.
Other
hs23.2Fixed
Description
See main CR

Comments
EVALUATION http://hg.openjdk.java.net/hsx/hotspot-main/hotspot/rev/40b4aaf010e4
14-06-2012

EVALUATION http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/40b4aaf010e4
08-06-2012

SUGGESTED FIX # HG changeset patch # User Chris Dennis <###@###.###> # Date 1338815867 14400 # Node ID 0f62a53fae4399f14b7202f9ba0c3d25905c5769 # Parent e17b61ba7bb3e6456028365987f3b077dfbe3dd4 7172708 : provide correct PRI?PTR definitions for 64-bit windows diff --git a/src/share/vm/utilities/globalDefinitions_visCPP.hpp b/src/share/vm/utilities/globalDefinitions_visCPP.hpp --- a/src/share/vm/utilities/globalDefinitions_visCPP.hpp +++ b/src/share/vm/utilities/globalDefinitions_visCPP.hpp @@ -220,9 +220,15 @@ #define PRIu64 "I64u" #define PRIx64 "I64x" +#ifdef _LP64 +#define PRIdPTR "I64d" +#define PRIuPTR "I64u" +#define PRIxPTR "I64x" +#else #define PRIdPTR "d" #define PRIuPTR "u" #define PRIxPTR "x" +#endif #define offset_of(klass,field) offsetof(klass,field)
07-06-2012

EVALUATION Need to use 64-bit format specifiers on 64-bit
07-06-2012