Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions kernelguard.py
Original file line number Diff line number Diff line change
Expand Up @@ -1303,8 +1303,8 @@ def detect_unsync_multistream(code: str | SubmissionFacts) -> list[dict]:
"high",
f"Python: {py_stream_creates} stream creates, no sync/wait primitives",
))
elif py_sync_calls * 2 < py_stream_creates:
# Significantly under-synchronized: fewer than half as many syncs as streams
elif py_sync_calls < py_stream_creates:
# Under-synchronized: fewer sync/wait calls than stream creates
candidates.append((
"medium",
f"Python: {py_stream_creates} stream creates, only {py_sync_calls} sync/wait calls",
Expand Down