JDK-8246027 : Minimal fastdebug build broken after JDK-8245801
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 11,15
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2020-05-28
  • Updated: 2024-10-03
  • Resolved: 2020-05-28
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 13 JDK 15
11.0.9-oracleFixed 13.0.7Fixed 15 b25Fixed
Related Reports
Relates :  
Description
$ make hotspot CONF=linux-x86_64-minimal-fa
Building target 'hotspot' in configuration 'linux-x86_64-minimal-fastdebug'
Updating support/modules_libs/java.base/minimal/libjvm.so due to 1 file(s)
In file included from /home/aoqi/work/jdk/src/hotspot/share/utilities/globalDefinitions.hpp:29,
                 from /home/aoqi/work/jdk/src/hotspot/share/memory/allocation.hpp:28,
                 from /home/aoqi/work/jdk/src/hotspot/share/classfile/classLoaderData.hpp:28,
                 from /home/aoqi/work/jdk/src/hotspot/share/precompiled/precompiled.hpp:34,
                 from /home/aoqi/work/jdk/src/hotspot/share/oops/instanceKlass.cpp:25:
/home/aoqi/work/jdk/src/hotspot/share/oops/instanceKlass.cpp: In member function 'void InstanceKlass::add_osr_nmethod(nmethod*)':
/home/aoqi/work/jdk/src/hotspot/share/oops/instanceKlass.cpp:3091:50: error: 'StressRecompilation' was not declared in this scope
     assert(prev == NULL || !prev->is_in_use() || StressRecompilation,
                                                  ^~~~~~~~~~~~~~~~~~~
/home/aoqi/work/jdk/src/hotspot/share/utilities/debug.hpp:56:9: note: in definition of macro 'vmassert'
   if (!(p)) {                                                                  \
         ^
/home/aoqi/work/jdk/src/hotspot/share/oops/instanceKlass.cpp:3091:5: note: in expansion of macro 'assert'
     assert(prev == NULL || !prev->is_in_use() || StressRecompilation,
     ^~~~~~
/home/aoqi/work/jdk/src/hotspot/share/oops/instanceKlass.cpp:3091:50: note: suggested alternative: 'MethodCompilation'
     assert(prev == NULL || !prev->is_in_use() || StressRecompilation,
                                                  ^~~~~~~~~~~~~~~~~~~
/home/aoqi/work/jdk/src/hotspot/share/utilities/debug.hpp:56:9: note: in definition of macro 'vmassert'
   if (!(p)) {                                                                  \
         ^
/home/aoqi/work/jdk/src/hotspot/share/oops/instanceKlass.cpp:3091:5: note: in expansion of macro 'assert'
     assert(prev == NULL || !prev->is_in_use() || StressRecompilation,
     ^~~~~~
gmake[3]: *** [lib/CompileJvm.gmk:150: /home/aoqi/work/jdk/build/linux-x86_64-minimal-fastdebug/hotspot/variant-minimal/libjvm/objs/instanceKlass.o] Error 1
gmake[2]: *** [make/Main.gmk:259: hotspot-minimal-libs] Error 2

Comments
Fix request (13u) -- will label after testing completed. I would like to backport the fix to jdk13u for parity with jdk11u. The original patch applied cleanly.
19-02-2021

Fixed in jdk/jdk15.
16-07-2020

[~aoqi], could you please confirm that the defect is fixed in jdk15 w/ the patch? if it's so, please close/verify this bug as 'verified'
15-07-2020

Fix request (11u) -- will label after testing completed. I would like to downport this for parity with 11.0.9-oracle. Applies clean.
22-06-2020

[~dholmes] I see. Thank you David.
29-05-2020

[~aoqi] There was a temporary outage on the service that updates the bug reports.
29-05-2020

URL: https://hg.openjdk.java.net/jdk/jdk/rev/ce48444eb6ef User: thartmann Date: 2020-05-28 07:15:46 +0000
28-05-2020

The fix was already pushed, but the link of the fix was not wrote back. Is there something wrong?
28-05-2020