diff --git a/core/nbio/impl_linux.odin b/core/nbio/impl_linux.odin index 552133e67..47d47d77c 100644 --- a/core/nbio/impl_linux.odin +++ b/core/nbio/impl_linux.odin @@ -23,7 +23,6 @@ _Event_Loop :: struct { unqueued: queue.Queue(^Operation), // Ready to run callbacks, mainly next tick, some other ops that error outside the kernel. completed: queue.Queue(^Operation), - allocator: mem.Allocator, wake: ^Operation, } @@ -128,8 +127,6 @@ _Stat :: struct { @(private="package") _init :: proc(l: ^Event_Loop, alloc: mem.Allocator) -> (err: General_Error) { - l.allocator = alloc - params := uring.DEFAULT_PARAMS params.flags += {.SUBMIT_ALL, .COOP_TASKRUN, .SINGLE_ISSUER} diff --git a/core/nbio/impl_others.odin b/core/nbio/impl_others.odin index 1c1e7674e..0a4564454 100644 --- a/core/nbio/impl_others.odin +++ b/core/nbio/impl_others.odin @@ -19,7 +19,6 @@ _FULLY_SUPPORTED :: false _Event_Loop :: struct { completed: queue.Queue(^Operation), timeouts: avl.Tree(^Operation), - allocator: mem.Allocator, } _Handle :: uintptr @@ -69,7 +68,6 @@ _Remove :: struct {} _Link_Timeout :: struct {} _init :: proc(l: ^Event_Loop, allocator: mem.Allocator) -> (rerr: General_Error) { - l.allocator = allocator l.completed.data.allocator = allocator avl.init_cmp(&l.timeouts, timeouts_cmp, allocator) diff --git a/core/nbio/impl_posix.odin b/core/nbio/impl_posix.odin index 19a61c256..9b4863710 100644 --- a/core/nbio/impl_posix.odin +++ b/core/nbio/impl_posix.odin @@ -23,7 +23,6 @@ _Event_Loop :: struct { // We have to keep record of what we currently have in the kqueue, and if we get an operation // that would be the same (ident, filter) pair we need to bundle the operations under one kevent. submitted: map[Queue_Identifier]^Operation, - allocator: mem.Allocator, // Holds all events we want to flush. Flushing is done each tick at which point this is emptied. pending: sa.Small_Array(QUEUE_SIZE, kq.KEvent), // Holds what should be in `pending` but didn't fit. @@ -107,7 +106,6 @@ _Link_Timeout :: struct {} @(private="package") _init :: proc(l: ^Event_Loop, allocator: mem.Allocator) -> (rerr: General_Error) { - l.allocator = allocator l.submitted.allocator = allocator l.overflow.data.allocator = allocator l.completed.data.allocator = allocator