denoland/deno_core

Creating a `JsRuntime` leaks memory with deno_core 0.307.0

Closed this issue · 1 comments

The following program:

fn main() {
    loop {
        deno_core::JsRuntime::new(deno_core::RuntimeOptions::default());
    }
}

leaks several megabytes of memory per second on my machine (even though each JsRuntime is immediately dropped).
Running the program under Heaptrack, it looks like the RawHeap transitively created by create_cpp_heap is never deallocated