Repository navigation
jitv2: in sync mode, recompile a page with code only when it goes hot - #745
Draft
jamesbraid wants to merge 1 commit into
Draft
jamesbraid wants to merge 1 commit into
jamesbraid wants to merge 1 commit into
Conversation
With jitv2.compile = "sync" the dispatch miss compiled at every new entry on a page, so a page with many entries re-emitted itself until the code arena filled, flushed and started over. An IRIX 6.5.22 Indy never reached login that way. The sync path now asks what the threaded path asks. It compiles when the page has no code, or when this arrival is the one that makes the pending request hot; any other new entry, on a page with current or stale code, is interpreted and counted. The check is two atomic operations on the page and the existing func pointer, so the dispatch path gains no lock. An IRIX 6.5.22 Indy now reaches login with sync (285 s and 300 s on a loaded host; 145 s with the default compile mode).
jamesbraid
marked this pull request as draft
November 14, 2026 22:26
jamesbraid
force-pushed
the
land/sync-compile
branch
2 times, most recently
from
November 15, 2026 00:04
f83a474 to
6b868b5
Compare
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.
With jitv2.compile = "sync" the dispatch miss compiled at every new
entry on a page, so a page with many entries re-emitted itself until the
code arena filled, flushed and started over. An IRIX 6.5.22 Indy never
reached login that way.
The sync path now asks what the threaded path asks. It compiles when the
page has no code, or when this arrival is the one that makes the pending
request hot; any other new entry, on a page with current or stale code,
is interpreted and counted. The check is two atomic operations on the
page and the existing func pointer, so the dispatch path gains no lock.
An IRIX 6.5.22 Indy now reaches login with sync (285 s and 300 s on a
loaded host; 145 s with the default compile mode).