aboutsummaryrefslogtreecommitdiff
path: root/CHANGES.md
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-10-01 23:52:34 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-10-01 23:52:34 -0400
commitf6d10cd5c49da95a770c9670ee45b886f48063af (patch)
treeb100fac48374e71a8919f3008c9a2bbfa5749454 /CHANGES.md
parent7494c89a4e1baa08a2720817b06676b34eebb284 (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.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/CHANGES.md b/CHANGES.md
index c717a95e..bfac654b 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -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