-
Bug
-
Resolution: Fixed
-
P3
-
11, 17, 18, 19, 20
-
b28
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8288922 | 20 | Aleksey Shipilev | P3 | Resolved | Fixed | b03 |
JDK-8291281 | 19.0.2 | Aleksey Shipilev | P3 | Resolved | Fixed | b01 |
JDK-8291130 | 19.0.1 | Aleksey Shipilev | P3 | Resolved | Fixed | b04 |
JDK-8292904 | 17.0.6-oracle | Thomas Schatzl | P3 | Resolved | Fixed | b01 |
JDK-8289067 | 17.0.5 | Aleksey Shipilev | P3 | Resolved | Fixed | b01 |
JDK-8293404 | 11.0.18-oracle | Thomas Schatzl | P3 | Resolved | Fixed | b01 |
JDK-8289066 | 11.0.17 | Aleksey Shipilev | P3 | Resolved | Fixed | b01 |
```
/home/test/shipilev-jdk/src/hotspot/share/gc/z/zReferenceProcessor.cpp: In member function 'oopDesc* ZReferenceProcessor::drop(oop, ReferenceType)':
/home/test/shipilev-jdk/src/hotspot/share/gc/z/zReferenceProcessor.cpp:270:22: error: '%s' directive argument is null [-Werror=format-overflow=]
270 | log_trace(gc, ref)("Dropped Reference: " PTR_FORMAT " (%s)", p2i(reference), reference_type_name(type));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
The problem is over-zealous compiler seeing `NULL` from `ShouldNotReachHere()` block, and complaining about it. In this particular case, we can dodge this by returning a more reasonable constant on failure path.
(This thing should be more reasonably handled when `ShouldNotReachHere()` is somehow `nonreturn`-ed, but Hotspot style doc is still undecided on this).
- backported by
-
JDK-8288922 GCC 12 fails to build zReferenceProcessor.cpp
- Resolved
-
JDK-8289066 GCC 12 fails to build zReferenceProcessor.cpp
- Resolved
-
JDK-8289067 GCC 12 fails to build zReferenceProcessor.cpp
- Resolved
-
JDK-8291130 GCC 12 fails to build zReferenceProcessor.cpp
- Resolved
-
JDK-8291281 GCC 12 fails to build zReferenceProcessor.cpp
- Resolved
-
JDK-8292904 GCC 12 fails to build zReferenceProcessor.cpp
- Resolved
-
JDK-8293404 GCC 12 fails to build zReferenceProcessor.cpp
- Resolved
- links to
-
Commit openjdk/jdk11u-dev/f1297383
-
Commit openjdk/jdk17u-dev/68456bb2
-
Commit openjdk/jdk19/834d92dd
-
Review openjdk/jdk11u-dev/1174
-
Review openjdk/jdk17u-dev/499
-
Review openjdk/jdk18u/176
-
Review openjdk/jdk19/47
-
Review openjdk/jdk/9219