Commit Graph

11 Commits

Author SHA1 Message Date
R. Ryantm
b2c6ead8d2 javaPackages.compiler.openjdk11: 11.0.32+1 -> 11.0.32+9 2026-07-28 19:57:12 +00:00
Stefan Nürnberger
e09bc37026 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
2026-06-22 19:05:28 +02:00
Ryan Omasta
1e02bd69ed openjdk11{,_headless}: 11.0.31+0 -> 11.0.32+1 2026-05-14 18:18:44 -06:00
Maximilian Bosch
2fb78891ae jdk11: 11.0.29+7 -> 11.0.31+0, fix build w/ glibc-2.42
Failing Hydra build: https://hydra.nixos.org/build/317760066
2026-01-03 20:39:47 +01:00
R. Ryantm
2c8de3ce1f jdk11: 11.0.29+5 -> 11.0.29+7 2025-10-26 04:37:53 +00:00
Maximilian Bosch
efaef9f996 jdk11: 11.0.28+6 -> 11.0.29+5 2025-09-26 18:39:52 +02:00
R. Ryantm
f12fc2409b jdk11: 11.0.27+6 -> 11.0.28+6 2025-07-21 18:11:38 +00:00
R. Ryantm
34180c104a jdk11: 11.0.26+4 -> 11.0.27+6 2025-05-04 08:24:56 +00:00
R. Ryantm
970afe19fa jdk11: 11.0.25+9 -> 11.0.26+4 2025-02-17 09:53:25 +00:00
Emily
afa5f90984 openjdk11: 11.0.24+8 -> 11.0.25+9 2024-10-24 19:25:30 +01:00
Emily
9bad08529e openjdk{8,11,17,21,23}: deduplicate into generic.nix 2024-10-24 15:04:55 +01:00