You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Repeatedly calling an export on one ComponentizeJS instance causes continuous RSS growth and shows no signs of stabilizing. Small repro can be found here https://github.com/ludfjig/jco_leak where the compoentnt exports echo: func(value: list<u8>) -> list<u8>; and is repeatendly called.
Hey @andreiltd was this still around? Did we need more fixes than what went into Jco? Happy to help if it's something on the Jco side that is holding this up
Hey @vados-cosmonic, I need to integrate js-component-bindgen changes back to ComponentizeJS. See: #353.
Coming from bindgen 1.x to 2.1.10 I had to come up with a workaround for "undefined task" error and created this Embedding adapter. I think cleaner solution would be to have something like CallRuntime in js-component-bindgen that will allow to set .call_runtime(CallRuntime::Embedding) and pass FunctionBindgen directly to abi::call skipping jco task machinery. But the adapter seems to work for now.
Ohhh, OK got it, thank you for the explanation! Oh yeah that would be a cleaner solution, if you want to PR it in I'm happy to take a look! I wonder how widespread those changes would be, threading the option through everywhere, probably wouldn't be too bad.
Yeah if we can get that out fast enough we could merge & release that instead of the duplicated Embedder logic? I'm a bit wary/want to try the code in https://github.com/bytecodealliance/ComponentizeJS/pull/353/changes against Jco's test suite since we're overriding bindgen in a few spots.
[EDIT] I can definitely get a js-component-bindgen release out today if the PR goes up!
Activity
feat(bindgen): add opt-in dealloc for owned abi buffers
vados-cosmonic commentedon Sep 16, 2026
Hey @andreiltd was this still around? Did we need more fixes than what went into Jco? Happy to help if it's something on the Jco side that is holding this up
andreiltd commentedon Sep 16, 2026
Hey @vados-cosmonic, I need to integrate
js-component-bindgenchanges back toComponentizeJS. See: #353.Coming from bindgen 1.x to 2.1.10 I had to come up with a workaround for "undefined task" error and created this
Embeddingadapter. I think cleaner solution would be to have something likeCallRuntimeinjs-component-bindgenthat will allow to set.call_runtime(CallRuntime::Embedding)and passFunctionBindgendirectly toabi::callskipping jco task machinery. But the adapter seems to work for now.vados-cosmonic commentedon Sep 16, 2026
Ohhh, OK got it, thank you for the explanation! Oh yeah that would be a cleaner solution, if you want to PR it in I'm happy to take a look! I wonder how widespread those changes would be, threading the option through everywhere, probably wouldn't be too bad.
andreiltd commentedon Sep 16, 2026
Yeah, I can give it a try and see :)
vados-cosmonic commentedon Sep 16, 2026
Yeah if we can get that out fast enough we could merge & release that instead of the duplicated
Embedderlogic? I'm a bit wary/want to try the code in https://github.com/bytecodealliance/ComponentizeJS/pull/353/changes against Jco's test suite since we're overriding bindgen in a few spots.[EDIT] I can definitely get a js-component-bindgen release out today if the PR goes up!