kit

kit
git clone https://git.ryansepassi.com/git/kit.git
Log | Files | Refs | README

memory_grow_large.wat (432B)


      1 (module
      2   ;; Old kit run allocated a fixed 16 MiB memory slab, then let memory.grow
      3   ;; increase the logical page count past that backing store. A valid access in
      4   ;; the newly-grown range must remain in-bounds for the host allocation.
      5   (memory 1 300)
      6   (func (export "test_main") (result i32)
      7     i32.const 299
      8     memory.grow
      9     drop
     10     i32.const 19595264
     11     i32.const 42
     12     i32.store
     13     i32.const 19595264
     14     i32.load))