JDK-8210164 : building Minimal VM fails with error: comparison of unsigned expression < 0 is always false [-Werror=type-limits]
  • Type: Bug
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 12
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2018-08-29
  • Updated: 2019-02-12
  • Resolved: 2018-08-30
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 12
12 b10Fixed
Related Reports
Duplicate :  
Duplicate :  
Relates :  
Relates :  
Description
On Linux x86, ARM, AARCH64:

=== Output from failing command(s) repeated here ===
* For target hotspot_variant-minimal_libjvm_objs_weakProcessorPhases.o:
/home/bellsoft/jdk/src/hotspot/share/gc/shared/weakProcessorPhases.cpp: In static member function ���static bool WeakProcessorPhases::is_serial(WeakProcessorPhases::Phase)���:
/home/bellsoft/jdk/src/hotspot/share/gc/shared/weakProcessorPhases.cpp:62:46: error: comparison of unsigned expression < 0 is always false [-Werror=type-limits]
   return (index(phase) - serial_phase_start) < serial_phase_count;
                                              ^
cc1plus: all warnings being treated as errors

Comments
Verified.
12-02-2019

[~avoitylov] can you please close this bug after verification so that we can wrap up the release?
11-02-2019

The change to is_oop_storage in http://cr.openjdk.java.net/~avoitylov/webrev.8210164.01/ is unnecessary.
30-08-2018

fix is being tested: http://cr.openjdk.java.net/~avoitylov/webrev.8210164.01/
29-08-2018