Changes between Version 3 and Version 4 of Commentary/Rts/HaskellExecution/HeapChecks
- Timestamp:
- 01/16/12 12:40:42 (17 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Commentary/Rts/HaskellExecution/HeapChecks
v3 v4 5 5 Source files: [[GhcFile(rts/HeapStackCheck.cmm)]] 6 6 7 When allocating a heap object, we bump `Hp` and compare to `HpLim`. If the test fails we branch to ???. Usually this code tests an interrupt flag (to see if execution should be brought tidily to a halt); grabs the next block of allo action space; makes `Hp` point to it and `HpLim` to its end; and returns. If there are no more allocation-space blocks, garbage collection is triggered.7 When allocating a heap object, we bump `Hp` and compare to `HpLim`. If the test fails we branch to ???. Usually this code tests an interrupt flag (to see if execution should be brought tidily to a halt); grabs the next block of allocation space; makes `Hp` point to it and `HpLim` to its end; and returns. If there are no more allocation-space blocks, garbage collection is triggered. 8 8 9 9 ----
