You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
jcl: sync_locks — DISP=OLD/MOD is JCL's exclusive-ENQ serialization idiom, but DISP= already feeds io (design question) #2733
Found by the epic #2560 n/a sweep of non-planted risk-formula inputs (child of #2669; na_check.py flags jcl/sync_locks as an unreviewed absence).
The morphology is real
Dataset disposition is z/OS's native serialization mechanism: DISP=OLD and DISP=MOD request an exclusive system ENQ on the dataset; DISP=SHR requests shared access. For a batch shop this is the construct engineers reason about when two jobs contend for a resource — semantically it is a lock acquisition declaration, which is exactly what sync_locks ("Resource Management & Stability") measures elsewhere. The engine already maps sync_locks onto a language's own idiom rather than demanding literal mutexes — solidity's rule is nonReentrant.
Candidate shape:
# Exclusive-ENQ dispositions only; DISP=SHR/NEW carry no contention semantics# worth a lock signal (SHR is the default request everyone makes)."sync_locks": re.compile(r"\bDISP=\(?(?:OLD|MOD)\b", re.I),
Why this is a question, not a straight fix
DISP= is already a keyword in jcl's io rule, and #2610 explicitly rejected a cleanup rule on DISP=(...,DELETE/CATLG) for exactly this double-count. Every sync_locks hit here would also be an io hit. Counterweights: the engine tolerates semantic overlaps elsewhere when the meanings genuinely differ (jcl's own COND=((4,LT),EVEN) deliberately counts both safety and safety_bypasses; haskell's finally counts cleanup+safety, ledgered as keyword-overlap), and the narrowed shape above hits only OLD/MOD, a small subset of DISP= occurrences, where the exclusive-lock semantics are the point.
Maintainer call: (a) add the narrowed rule and accept the documented overlap (rosetta pairs a DISP=OLD plant per GATING — the corpus currently has only one DISP=SHR), or (b) decline per the #2610 cleanup precedent and the corpus-side ledger entry jcl-sync-locks-disp-enq-question flips from upstream-question to intended-absence with this issue as the recorded rationale. Either outcome ends the unreviewed state; the cell is covered by that entry meanwhile.
Activity
feat(core-engine): jcl sync_locks counts the exclusive-ENQ dispositio…