Files
nixpkgs/pkgs/development/compilers
Stefan Nürnberger 1d2e376b84 openjdk11{, -headless}: fix UB in markOop
OpenJDK 11 misuses the low bits in pointers that have an assumed
alignment. This is undefined behavior and compiler optimizations break
the code at runtime, causing SIGSEGV in the garbage collector.

This was originally noticed for clang13, but GCC15 seems to
do similar optimizations now. The UB was removed in JDK14.

See https://bugs.openjdk.org/browse/JDK-8229258

This is a smaller version of the unsuccessful backport PR proposed upstream:
https://github.com/openjdk/jdk11u-dev/pull/1284

Removed the .github/workflows changes and everything from the markOop to
markWord rename and file move from the patch. I found a way to avoid most
of the `markOopDesc`->`markOop` renames with a typedef, and dropped the
changes to all architectures besides x86 and aarch64.

Fixes: https://github.com/nixos/nixpkgs/issues/526834
(cherry picked from commit e09bc37026)
2026-06-25 16:22:56 +00:00
..
2026-05-07 00:54:14 +00:00
2026-05-05 13:06:16 +02:00
2026-05-04 01:49:19 +03:00
2026-04-17 19:19:14 -04:00
2026-05-15 16:42:24 +00:00
2026-05-06 22:21:22 +02:00
2026-04-23 14:29:23 +00:00
2026-04-18 01:11:53 +00:00
2026-06-05 00:24:14 +10:00
2026-06-24 13:56:12 +00:00
2026-05-15 12:38:31 +00:00
2026-04-05 09:32:28 +00:00
2026-05-15 13:49:56 +07:00
2026-04-05 00:28:24 +00:00
2026-04-17 10:32:56 +02:00
2026-05-14 18:19:07 -06:00