Commit 633c26f
Edmond
Delegate fiber GC to coroutine when fiber has coroutine
When fiber->coroutine is set, the fiber's GC handler now delegates
to the coroutine's GC handler by adding the coroutine object to GC buffer.
This ensures proper garbage collection of coroutine data including:
- fcall parameters and function name
- coroutine result
- execution stack
- all other coroutine-managed resources
For non-coroutine fibers, the original GC logic remains unchanged.1 parent 04f64a6 commit 633c26f
1 file changed
+17
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1375 | 1375 | | |
1376 | 1376 | | |
1377 | 1377 | | |
1378 | | - | |
1379 | | - | |
| 1378 | + | |
| 1379 | + | |
1380 | 1380 | | |
1381 | | - | |
1382 | | - | |
1383 | | - | |
1384 | | - | |
1385 | | - | |
1386 | | - | |
1387 | | - | |
| 1381 | + | |
| 1382 | + | |
| 1383 | + | |
| 1384 | + | |
| 1385 | + | |
| 1386 | + | |
| 1387 | + | |
| 1388 | + | |
| 1389 | + | |
| 1390 | + | |
| 1391 | + | |
1388 | 1392 | | |
1389 | 1393 | | |
| 1394 | + | |
| 1395 | + | |
| 1396 | + | |
| 1397 | + | |
1390 | 1398 | | |
1391 | 1399 | | |
1392 | 1400 | | |
| |||
0 commit comments