-
Bug
-
Resolution: Fixed
-
P4
-
None
-
b57
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8082510 | emb-9 | Goetz Lindenmaier | P4 | Resolved | Fixed | team |
This warning detects unnecessary compares for >= 0 of unsigned values.
At least one warning unveils a real bug. In memory/blockOffsetTable.cpp, BlockOffsetArrayContigSpace::last_active_index(), the compare to >=0 tries to prevent an underflow, but the value is unsigned.
Further useless compares in real code are in os_linux.cpp, opto/graphKit.cpp and prims/jvmtiRedefineClasses.cpp.
In some places debug code with constant debug flags caused warnings in the opt build (g1/concurrentMark.cpp, classfile/systemDictionary.cpp) .
Most of the warnings occur in asserts.
The change also removes an empty #ifdef ASSERT.
At least one warning unveils a real bug. In memory/blockOffsetTable.cpp, BlockOffsetArrayContigSpace::last_active_index(), the compare to >=0 tries to prevent an underflow, but the value is unsigned.
Further useless compares in real code are in os_linux.cpp, opto/graphKit.cpp and prims/jvmtiRedefineClasses.cpp.
In some places debug code with constant debug flags caused warnings in the opt build (g1/concurrentMark.cpp, classfile/systemDictionary.cpp) .
Most of the warnings occur in asserts.
The change also removes an empty #ifdef ASSERT.
- backported by
-
JDK-8082510 Enable gcc -Wtype-limits and fix upcoming issues.
-
- Resolved
-
- blocks
-
JDK-8074136 Many missing error checks in get_core_path variants
-
- Closed
-
-
JDK-8074142 Simplify use of G1StressConcRegionFreeingDelayMillis
-
- Closed
-
- relates to
-
JDK-8079093 Remove FakeRttiSupport workaround for spurious gcc -Wtype-limits
-
- Resolved
-