AssemblyScript Runtime Visualizer

Notes:

First level bitmap

The first level map is a bitmap determining whether free blocks exists in at least one of its respective second levels. In this implementation, the first bit indicates whether a small block (< 256B) exists. Each bit doubles the size.

Second level maps

Second level maps subdivide each first level into multiple lists of subsizes. Each one works similar to the first level bitmap.

Heads

The heads of the actual free lists, one per second level per first level. Values here are pointers into memory. Last item is the address of the special zero-size "used" tail block, which is usually the end of WASM memory minus block overhead.

Allocator

Click to allocate:      

Segments