mirror of
https://github.com/oven-sh/bun
synced 2026-02-12 03:48:56 +00:00
Limit the number of pooled objects
This commit is contained in:
@@ -784,7 +784,7 @@ pub const DescribeScope = struct {
|
||||
this.tests.deinit(getAllocator(ctx));
|
||||
}
|
||||
|
||||
const ScopeStack = ObjectPool(std.ArrayListUnmanaged(*DescribeScope), null, true);
|
||||
const ScopeStack = ObjectPool(std.ArrayListUnmanaged(*DescribeScope), null, true, 16);
|
||||
|
||||
// pub fn runBeforeAll(this: *DescribeScope, ctx: js.JSContextRef, exception: js.ExceptionRef) bool {
|
||||
// var scopes = ScopeStack.get(default_allocator);
|
||||
|
||||
Reference in New Issue
Block a user