aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar cirospaciari <ciro.spaciari@gmail.com> 2023-09-20 19:17:14 -0300
committerGravatar Ciro Spaciari <ciro.spaciari@gmail.com> 2023-09-20 23:42:14 -0300
commit9cfabc06db4d96d3eee59a251d51dd7f9984a93e (patch)
treecf9ec6f153bfd17933edf32645b24075ec3e5270
parent8cac7ac32dd6d76327c5043a7a7a6b93d8c887ea (diff)
downloadbun-ciro/gc-tests.tar.gz
bun-ciro/gc-tests.tar.zst
bun-ciro/gc-tests.zip
update commentciro/gc-tests
-rw-r--r--src/bun.js/event_loop.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bun.js/event_loop.zig b/src/bun.js/event_loop.zig
index 2820869a4..4f3fb0c00 100644
--- a/src/bun.js/event_loop.zig
+++ b/src/bun.js/event_loop.zig
@@ -591,8 +591,8 @@ pub const GarbageCollectionController = struct {
// avoid GCing again if the memory is still high creating a new threshold
this.gc_heap_size_threshold = @max(MINUMUM_HEAP_SIZE_THRESHOLD, this.gc_last_heap_size * 2);
} else {
- // this shows that memory is very high, so and we will avoid GCing again because of performance reasons
- // at this point JSC should be able to control memory better than we can
+ // this shows that memory usage is very high (probably a memory leak)
+ // at this point collectAsync should be able to control memory better than we can
this.gc_heap_size_threshold = MAXIMUM_HEAP_SIZE_THRESHOLD;
}
} else {