JDK-8288051 : Loom: Extend the compilation warning workaround in stack chunk copy
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 19
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2022-06-08
  • Updated: 2022-06-10
  • Resolved: 2022-06-09
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 19
19 b26Fixed
Related Reports
Relates :  
Description
Current builds fail on some newer GCCs and some arches. There is already a workaround in place in one copy method, we need the workaround in another one too. I took a brief look if we could dispense with this workaround altogether, but that does not seem to be straight-forward for JDK 19 timeframe.

```
* For target hotspot_variant-server_libjvm_objs_continuationFreezeThaw.o:
In file included from /home/buildbot/shipilev-jdk/src/hotspot/share/classfile/javaClasses.inline.hpp:36,
                 from /home/buildbot/shipilev-jdk/src/hotspot/share/runtime/continuationFreezeThaw.cpp:26:
In member function 'void stackChunkOopDesc::copy_from_stack_to_chunk(intptr_t*, intptr_t*, int)',
    inlined from 'void FreezeBase::copy_to_chunk(intptr_t*, intptr_t*, int)' at /home/buildbot/shipilev-jdk/src/hotspot/share/runtime/continuationFreezeThaw.cpp:499:34,
    inlined from 'freeze_result FreezeBase::recurse_freeze_stub_frame(frame&, frame&)' at /home/buildbot/shipilev-jdk/src/hotspot/share/runtime/continuationFreezeThaw.cpp:1168:16:
/home/buildbot/shipilev-jdk/src/hotspot/share/oops/stackChunkOop.inline.hpp:319:9: error: argument 1 null where non-null expected [-Werror=nonnull]
  319 |   memcpy(to, from, size << LogBytesPerWord);
      |   ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/buildbot/shipilev-jdk/src/hotspot/share/utilities/globalDefinitions_gcc.hpp:35,
                 from /home/buildbot/shipilev-jdk/src/hotspot/share/utilities/globalDefinitions.hpp:35,
                 from /home/buildbot/shipilev-jdk/src/hotspot/share/metaprogramming/primitiveConversions.hpp:30,
                 from /home/buildbot/shipilev-jdk/src/hotspot/share/utilities/enumIterator.hpp:32,
                 from /home/buildbot/shipilev-jdk/src/hotspot/share/classfile/vmClassID.hpp:29,
                 from /home/buildbot/shipilev-jdk/src/hotspot/share/classfile/vmClasses.hpp:28,
                 from /home/buildbot/shipilev-jdk/src/hotspot/share/classfile/javaClasses.hpp:28,
   ... (rest of output omitted)
```
Comments
Changeset: 7e1cce8c Author: Aleksey Shipilev <shade@openjdk.org> Date: 2022-06-09 05:48:48 +0000 URL: https://git.openjdk.java.net/jdk/commit/7e1cce8cb508a8af770443360721fbb3d3b40237
09-06-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk/pull/9091 Date: 2022-06-08 18:05:10 +0000
08-06-2022