JDK-8260632 : Build failures after JDK-8253353
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 16
  • Priority: P1
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2021-01-29
  • Updated: 2022-09-02
  • Resolved: 2021-01-29
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 11 JDK 15 JDK 16 JDK 17 Other
11.0.11Fixed 15.0.9Fixed 16 b35Fixed 17Fixed shenandoah8u332Fixed
Related Reports
Relates :  
Description
* For target hotspot_variant-server_libjvm_objs_shenandoahSupport.o:
/home/buildbot/worker/build-jdk16u-linux/build/src/hotspot/share/gc/shenandoah/c2/shenandoahSupport.cpp: In member function 'void MemoryGraphFixer::collect_memory_nodes()':
/home/buildbot/worker/build-jdk16u-linux/build/src/hotspot/share/gc/shenandoah/c2/shenandoahSupport.cpp:2291:43: error: no matching function for call to 'MAX2(uint8_t&, uint16_t&)'
     max_depth = MAX2(max_depth, lpt->_nest);
                                           ^
In file included from /home/buildbot/worker/build-jdk16u-linux/build/src/hotspot/share/metaprogramming/primitiveConversions.hpp:30:0,
                 from /home/buildbot/worker/build-jdk16u-linux/build/src/hotspot/share/oops/oopHandle.hpp:28,
                 from /home/buildbot/worker/build-jdk16u-linux/build/src/hotspot/share/classfile/systemDictionary.hpp:28,
                 from /home/buildbot/worker/build-jdk16u-linux/build/src/hotspot/share/classfile/javaClasses.hpp:28,
                 from /home/buildbot/worker/build-jdk16u-linux/build/src/hotspot/share/gc/shenandoah/c2/shenandoahSupport.cpp:27:
/home/buildbot/worker/build-jdk16u-linux/build/src/hotspot/share/utilities/globalDefinitions.hpp:1029:31: note: candidate: template<class T> constexpr T MAX2(T, T)
 template<class T> constexpr T MAX2(T a, T b)           { return (a > b) ? a : b; }
                               ^~~~
/home/buildbot/worker/build-jdk16u-linux/build/src/hotspot/share/utilities/globalDefinitions.hpp:1029:31: note:   template argument deduction/substitution failed:
/home/buildbot/worker/build-jdk16u-linux/build/src/hotspot/share/gc/shenandoah/c2/shenandoahSupport.cpp:2291:43: note:   deduced conflicting types for parameter 'T' ('unsigned char' and 'short unsigned int')
     max_depth = MAX2(max_depth, lpt->_nest);
   ... (rest of output omitted)
Comments
Fix request (15u) I would like to backport this fix as a follow-up for JDK-8253353.
02-09-2022

A pull request was submitted for review. URL: https://git.openjdk.org/jdk15u-dev/pull/263 Date: 2022-08-28 12:42:46 +0000
02-09-2022

A pull request was submitted for review. URL: https://git.openjdk.org/shenandoah-jdk8u/pull/6 Date: 2022-08-15 07:52:15 +0000
15-08-2022

Fix Request (11u) Needed to unbreak the build after JDK-8253353 backport. Patch applies cleanly.
04-02-2021

Changeset: bc41bb10 Author: Aleksey Shipilev <shade@openjdk.org> Date: 2021-01-29 17:48:11 +0000 URL: https://git.openjdk.java.net/jdk16/commit/bc41bb10
29-01-2021

Fix Request for JDK 16 approved.
29-01-2021

ILW = Build failure = P1
29-01-2021

Fix Request for JDK 16 This fixes the broken build after recent commit. Risk is low, as it completes the previous low-risk patch. PR: https://github.com/openjdk/jdk16/pull/138
29-01-2021