HS: raise default step limit 200k → 1M
JIT compilation on first call to many functions incurs a step cost of 200–600k CEK steps. The 200k default was silently failing ~70 tests across suites like hs-upstream-default, hs-upstream-on, comparisonOp, and others that work correctly but need JIT warmup headroom. Raising to 1M reveals all of these as passing. The hypertrace/repeat-forever tests that are genuinely unbounded remain in _NO_STEP_LIMIT. Full suite scan (all ranges) now shows 1475/1496 (21 pre-existing SKIP/untranslated failures, 0 actual failures). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -15,7 +15,7 @@ eval(fs.readFileSync(path.join(WASM_DIR, 'sx_browser.bc.js'), 'utf8'));
|
||||
const K = globalThis.SxKernel;
|
||||
|
||||
// Step limit API — exposed from OCaml kernel
|
||||
const STEP_LIMIT = parseInt(process.env.HS_STEP_LIMIT || '200000');
|
||||
const STEP_LIMIT = parseInt(process.env.HS_STEP_LIMIT || '1000000');
|
||||
|
||||
function setStepLimit(n) { K.setStepLimit(n); }
|
||||
function resetStepCount() { K.resetStepCount(); }
|
||||
|
||||
Reference in New Issue
Block a user