On Mon, 16 Nov 2026 02:28:03 GMT, FuBangkun <[email protected]> wrote:

>> Hi @FuBangkun, thanks for sharing the problem that you're running into.  And 
>> thanks also for triaging the problem at your end!
>> 
>> There are a couple of scenarios that could explain the crash that you saw, 
>> one of which was addressed just last week in 
>> https://github.com/openjdk/jdk/pull/33729.  I have just now initiated 
>> backporting of that patch to JDK27 and CI builds are running at 
>> https://github.com/raneashay/jdk-27/actions/runs/43782257129.  If you were 
>> running into this scenario, then PR 33729's patch (and the JDK27 build from 
>> the link above) might work for you.
>> 
>> The other possible scenario is that the downcall stub allocated its frame 
>> without a stack bang, so at this point, the stack could already be in a bad 
>> state, which makes it hard to hypothesize what could have happened next.  
>> That problem is addressed by this PR's changes (specifically, on Windows, 
>> the downcall stub first probes the allocation).  There are a few other fixes 
>> in this PR (like the default stack shadow pages being bumped to 20 pages to 
>> match other OSes) that could be relevant.
>> 
>> I have merged the master branch into this PR's branch, which should trigger 
>> the CI build.  If the JDK27 Windows/x64 build from above doesn't fix the 
>> issue, would you be willing to try the JDK tip (i.e. JDK28) build that's 
>> produced by this PR's CI (from 
>> https://github.com/raneashay/openjdk-jdk/actions/runs/43785113617) to see if 
>> that resolves the issue?
>
> Hi @raneashay,
> 
> I tested the JDK 27 CI build (`27.0.2-internal` from run `43782257129` with 
> the PR #33729 backport) in an isolated workspace with our 16 MiB stack 
> workaround removed and standard JVM flags:
> 
> - **Baseline (`Zulu 27.0.1`)**: 7 out of 8 runs crashed with `0xC0000005` 
> (exit code `139` / `-1073741819`) without generating an `hs_err` log (across 
> both initial startup and the second reboot session; 1 run passed).
> - **JDK 27 CI build (`27.0.2-internal` + PR #33729)**: **5 out of 5 
> consecutive runs passed** (exit code `0`, 119–120 E2E checks with 0 failures 
> and 0 crashes).
> 
> The crash no longer reproduces on this build, which strongly suggests 
> `JDK-8394484` / PR #33729 addresses the failure we hit.
> 
> Thanks again for putting this backport build together! Please let me know if 
> you'd still like me to test the JDK 28 PR #32365 build as well.
> 
> **Update (additional A/B check on our full reload branch):**
> We also re-ran an A/B comparison on our latest branch (with full classloader 
> unloading and transform caching enabled—**even with our 16 MiB shader-thread 
> stack workaround still active**):
> - **`Zulu 27.0.1`**: **3 out of 3 runs crashed** silently (`0xC0000005`, 
> `hs_err=0`) mid-way through the second session (around ticks 30–114).
> - **`27.0.2-internal` (PR #33729)**: **4 out of 4 runs completed cleanly with 
> zero crashes**.
> 
> This shows our 16 MiB thread stack workaround isn't actually sufficient on 
> Windows against `JDK-8394484` once class unloading/reloading changes JIT 
> timing, making the PR #33729 backport to JDK 27 all the more essential.

That was fast, thanks @FuBangkun!  I need to run some tests locally to be 
certain that the backported patch doesn't break anything, but once everything 
checks out, I'll request maintainer approval for that backporting PR.  It might 
take a day or so for all of the tests to finish executing.

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

PR Comment: https://git.openjdk.org/jdk/pull/32365#issuecomment-6907170836

Reply via email to