<!DOCTYPE html><html><head><title></title><style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div>Hello,<br></div><div><br></div><div>In an attempt to use JDK-21, we have discovered what appears to be a memory corruption issue where a byte-array is missing data in the middle (unexpectedly filled with zeros). This only occurs when AVX-512 is enabled (<code>-XX:UseAVX=3</code>), and cannot be reproduced with <code>-XX:UseAVX=2</code>.<br></div><div><br></div><div>I have pushed a reproducer here: <a href="https://github.com/carterkozak/avx512-jit-reproducer">https://github.com/carterkozak/avx512-jit-reproducer</a><br></div><div><br></div><div>This impacts generally available releases of JDK-20 and JDK-21. I have bisected the failure to this change, which I wouldn’t expect to be problematic, yet does seem to trigger the failure reliably: <a href="https://github.com/openjdk/jdk/pull/9037">https://github.com/openjdk/jdk/pull/9037</a>.<br></div><div><br></div><div>While I have some experience replaying compiler failures, this bug doesn’t cause a crash or otherwise trip assertions in <code>fastdebug</code> or <code>slowdebug</code> builds that would give me a good place to start. I haven’t been able to find a great deal of literature on the best practices for constructing a reproducer/reporting the problem in detail — it took me more time than I’d like to admit to build what I have, and I’d be grateful for pointers that might help narrow things down next time.<br></div><div><br></div><div>Best,<br></div><div>Carter Kozak<br></div></body></html>