This commit is contained in:
2026-03-24 13:40:41 +00:00
parent 123d39331e
commit b7e149a1ab
4 changed files with 36 additions and 36 deletions
-36
View File
@@ -1,39 +1,3 @@
# PR-7.4 — YIELD Instruction
## Briefing
YIELD voluntarily gives up execution.
## Target
Opcode:
`YIELD`
Semantics:
* Current coroutine moves to end of ready queue.
* Scheduler selects next coroutine at safepoint.
Switching must occur only at FRAME_SYNC.
## Checklist
* [ ] YIELD opcode implemented.
* [ ] Current coroutine enqueued.
* [ ] No mid-instruction switching.
## Tests
* Two coroutines yielding alternate deterministically.
## Junie Rules
You MAY modify VM execution loop.
You MUST NOT allow switching outside safepoints.
---
# PR-7.5 — SLEEP Instruction
## Briefing