OC-Wasm

An OpenComputers architecture that runs WebAssembly

File Details

oc-wasm-1.12-1.0.0.jar

  • R
  • Apr 6, 2024
  • 5.47 MB
  • 2.2K
  • 1.12.2
  • Forge

File Name

oc-wasm-1.12-1.0.0.jar

Supported Versions

  • 1.12.2

Curse Maven Snippet

Forge

implementation fg.deobf("curse.maven:oc-wasm-508311:5240985")
Curse Maven does not yet support mods that have disabled 3rd party sharing

Learn more about Curse Maven

Changes:

  • A new system call, freeRAM, has been added to the computer module. This returns the amount of free memory, in bytes, accounting for the size of the module code, the size of the linear memory, and the current runtime stack and local variable usage. Thanks for DCNick3 for this addition.

Fixes:

  • Free memory used to be accounted incorrectly when performing a linear memory resize. This would potentially allow a module to declare a linear memory with a small initial size but a large maximum size, then grow the linear memory up to the size of RAM installed in the computer at runtime, while still leaving space free for the runtime stack and local variables. Growing linear memory now correctly subtracts from the amount available for the stack and locals. Thanks to DCNick3 for this fix.
  • Calling the methodsNext syscall no longer crashes if methodsStartComponent or methodsStartValue was previously called on a component or opaque value that has no methods. Thanks to Buzzec for this fix.