[jdk11u-dev] RFR: Allow building with Clang 13 [v3]

Salander duke at openjdk.org
Fri Aug 19 16:03:00 UTC 2022


> This patch backports changes from JDK14 commit ae5615c6142a4dc0d9033462f4880d7b3c127e26. It does not rename the class to markWord as the original patch does, but instead converts markOop to a markWord equivalent in-place. This patch allows the JDK to be built with Clang 13, as it avoids undefined behavior.
> 
> See the following for more information:
> 
>     https://bugs.openjdk.java.net/browse/JDK-8229258
>     https://bugs.gentoo.org/817995
>     https://mail.openjdk.java.net/pipermail/hotspot-dev/2019-July/038704.html
>     https://mail.openjdk.java.net/pipermail/hotspot-dev/2019-July/038712.html
>     https://reviews.llvm.org/D99790#2678384
> 
> This is a re-do of @Serebit's PR that erroneously targeted the jdk11u repository ([link](https://github.com/openjdk/jdk11u/pull/23)), the only difference is that some errors in the backport were corrected in the `shenandoahForwarding.inline.hpp` file to fix some compilation errors when compiling with `shenandoahgc` enabled.

Salander has updated the pull request incrementally with one additional commit since the last revision:

  Update klass.inline.hpp

-------------

Changes:
  - all: https://git.openjdk.org/jdk11u-dev/pull/1284/files
  - new: https://git.openjdk.org/jdk11u-dev/pull/1284/files/39597158..a118f6fe

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk11u-dev&pr=1284&range=02
 - incr: https://webrevs.openjdk.org/?repo=jdk11u-dev&pr=1284&range=01-02

  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk11u-dev/pull/1284.diff
  Fetch: git fetch https://git.openjdk.org/jdk11u-dev pull/1284/head:pull/1284

PR: https://git.openjdk.org/jdk11u-dev/pull/1284


More information about the jdk-updates-dev mailing list