Repository navigation
Wake every thread waiting on a compile when it finishes - #19
Merged
Merged
Conversation
burinc
added a commit
to jlt-commons/jolt-openldk
that referenced
this pull request
Oct 20, 2026
Upstream merged atgreen/openldk#19 and #20, the compile and monitor-exit wakeup fixes, so bridge.lisp no longer replaces any OpenLDK function. Each copy was compared with upstream's version first: %claim-method-compilation differed only by its 50 ms wait timeout, and monitor-exit was identical. The pin also brings #21, the maintainer's broadcast where wait() releases a monitor. The README, CHANGELOG and upstream notes now say the fixes are upstream, including two notes lines and a test docstring that still described fixes the last pin move had already dropped.
atgreen
added a commit
that referenced
this pull request
Oct 20, 2026
PRs #19-#21 and #23-#27 added aaa/jitwake, monitorwake, waitwake, zipfile, filestat, lazyloader, reflstatic, siblingloaders and childfirst. check-regression.sh only fails on lost passes and new failures, so a new test is not enforced until it is in the baseline. Core suites now 528 expected passes, up from 501; no test changed state. Generated with make check-regression at 2e5e6db; the Running lines keep the existing baseline's paths. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
%compile-methodfinishes by waking waiters withbt:condition-notify, which wakes one thread, on*method-compilation-cv*, a condition variable every method shares. So when three or more threads make the first call of the same method, the compile finishing frees one waiter and the rest sleep until some unrelated compile happens to notify again, which in a quiet program is never. A notify meant for one method can also be taken by a thread waiting on another.This makes it
sb-thread:condition-broadcast, whichnotifyAll()insrc/native/system.lispalready uses. Woken threads re-check their method's status under the lock, and the wakeup runs once per method, at its first call.Checks: the new
aaa/jitwake.java, four threads making the first call of one method together, printedstuckon master three runs out of three once its 20 s join timed out, and printsOKin about 2 s with the fix.make check-regressionpasses on macOS arm64, 504 core passes, no losses against the baseline.Re-verified against
masterat4498cd2(2026-10-19).