quickjs-emscripten icon indicating copy to clipboard operation
quickjs-emscripten copied to clipboard

Improve memory accounting

Open justjake opened this issue 1 year ago • 2 comments

  • Enable malloc_usable_size and other previously linux-only features that Emscripten can actually emulate. This should improve memory accounting.
  • Breaking: runtime.computeMemoryUsage() now directly returns a host Javascript object, instead of a handle. We no longer need a "system context" to pass the result back as a JSValue.
  • remove runtime.getSystemContext() since it has no callers and is private
  • Breaking: Use Emscripten STRICT=1 mode, dropping some properties previously exposed on the Emscripten module type
  • Maybe breaking: Enable Emscripten WASM_BIGINT=1 mode, which may cause some internal functions to return bigint instead of number.

Fixes #206

justjake avatar Sep 15 '24 00:09 justjake