Skip to content

peter-jerry-ye/memory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

简陋内存管理 Naive Memory Allocator

超级简陋的链表实现。仅限Wasm-gc后端。 内存管理将管理整块线性内存。自动增长内存。

Super naive implementation with linkedlist. Wasm-GC Only. Allocator will take control over the whole linear memory. Memory will grow automatically.

使用 Usage

  • allocate(size: Int) -> Option[Memory]
  • memory.reallocate(_alignment: Int, new_size: Int) -> Option[Memory]
  • memory.free() -> Option[Unit]

About

Memory allocator for WasmGC in MoonBit

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published