-
Bug
-
Resolution: Fixed
-
P4
-
None
-
b15
-
x86
-
os_x
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8045448 | 8u25 | David Chase | P4 | Resolved | Fixed | b01 |
JDK-8043810 | 8u20 | David Chase | P4 | Resolved | Fixed | b16 |
JDK-8053363 | emb-8u26 | David Chase | P4 | Resolved | Fixed | b17 |
(From Staffan Larsen:)
BTW, I got compilation errors with Xcode 4.6.3 when compiling only the OpenJDK code:
/Users/staffan/mercurial/jdk9-hs-rt/hotspot/src/share/vm/trace/traceStream.hpp: In member function ‘void TraceStream::print_val(const char*, s8)’:
/Users/staffan/mercurial/jdk9-hs-rt/hotspot/src/share/vm/trace/traceStream.hpp:69: warning: format ‘%lld’ expects type ‘long long int’, but argument 4 has type ‘s8’
Configure flags were:
configure --disable-zip-debug-info --with-debug-level=release --with-jobs=7 --with-conf-name=openjdk-release --enable-openjdk-only
I think this is a fix:
diff --git a/src/share/vm/trace/traceStream.hpp b/src/share/vm/trace/traceStream.hpp
--- a/src/share/vm/trace/traceStream.hpp
+++ b/src/share/vm/trace/traceStream.hpp
@@ -66,7 +66,7 @@
}
void print_val(const char* label, s8 val) {
- _st.print("%s = "INT64_FORMAT, label, val);
+ _st.print("%s = "INT64_FORMAT, label, (int64_t) val);
}
BTW, I got compilation errors with Xcode 4.6.3 when compiling only the OpenJDK code:
/Users/staffan/mercurial/jdk9-hs-rt/hotspot/src/share/vm/trace/traceStream.hpp: In member function ‘void TraceStream::print_val(const char*, s8)’:
/Users/staffan/mercurial/jdk9-hs-rt/hotspot/src/share/vm/trace/traceStream.hpp:69: warning: format ‘%lld’ expects type ‘long long int’, but argument 4 has type ‘s8’
Configure flags were:
configure --disable-zip-debug-info --with-debug-level=release --with-jobs=7 --with-conf-name=openjdk-release --enable-openjdk-only
I think this is a fix:
diff --git a/src/share/vm/trace/traceStream.hpp b/src/share/vm/trace/traceStream.hpp
--- a/src/share/vm/trace/traceStream.hpp
+++ b/src/share/vm/trace/traceStream.hpp
@@ -66,7 +66,7 @@
}
void print_val(const char* label, s8 val) {
- _st.print("%s = "INT64_FORMAT, label, val);
+ _st.print("%s = "INT64_FORMAT, label, (int64_t) val);
}
- backported by
-
JDK-8043810 Format warning in traceStream.hpp
-
- Resolved
-
-
JDK-8045448 Format warning in traceStream.hpp
-
- Resolved
-
-
JDK-8053363 Format warning in traceStream.hpp
-
- Resolved
-
- relates to
-
JDK-8037816 Fix for 8036122 breaks build with Xcode5/clang
-
- Resolved
-