diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-10-01 23:52:34 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-10-01 23:52:34 -0400 |
| commit | f6d10cd5c49da95a770c9670ee45b886f48063af (patch) | |
| tree | b100fac48374e71a8919f3008c9a2bbfa5749454 /CHANGES.md | |
| parent | 7494c89a4e1baa08a2720817b06676b34eebb284 (diff) | |
Force a GC sweep when we run out of file handles to trigger cleanup of
leaked file handles.
Diffstat (limited to 'CHANGES.md')
| -rw-r--r-- | CHANGES.md | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -33,6 +33,10 @@ - `Text.from_utf32()`/`Text.utf32()` - Fixed bugs: - `Int.parse()` had a memory bug. + - Breaking out of a `for line in file.by_line()!` loop would leak file handle + resources, which could lead to exhausting the number of open file handles. + When that happens, the standard library now forces a GC collection to clean + up resources, which can result in file handles being freed up. ## v0.3 |
