browser: a dispatch miss asks the function map for training notes only in a training run

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_461fe3ff06374ecba693831148697ba6
This commit is contained in:
velzieandClaude Opus 5.5 committed 2026-10-06 07:22:32 -04:00
1 parent efd288169f
commit 52bb4b96fe
2 files changed
+6 -1

No files matched your search

+5
View File
@@ -968,6 +968,11 @@ pub(crate) fn knows(pc: u64) -> bool {
ftab(|m| m.get(pc).is_some())
}
/// Whether this is an ejected project's training run (`GEX_NT_ENTRY_LOG`).
pub(crate) fn entry_log() -> bool {
ENTRY_LOG.load(Ordering::Relaxed)
}
pub(crate) fn note_web_entry(pc: u64) {
if !ENTRY_LOG.load(Ordering::Relaxed) {
return;
+1 -1
View File
@@ -10705,7 +10705,7 @@ pub extern "C" fn gex_dispatch_miss(_ctx: i32, pc: i64) -> i32 {
// An ejected project's training run: a pc of a unit image no function
// holds is a web entry, whether the function JIT (below) or tier-1 then
// runs it (the AOT-only run would stop here).
if !cgen::knows(pc) {
if cgen::entry_log() && !cgen::knows(pc) {
crate::cgen::note_web_entry(pc);
}
// A function serves it, or the function JIT makes one: tier-1 reaches