ilusm.dev

mm

Memory management, pools, garbage, profiling.

Load with: use mm

Quick example

use mm

result = mmal("value")
prn(result)

Functions

Stats

mmst()

Sets a value or starts a process.

mmus()

Performs the operation.

mmav()

Performs the operation.

mmhp()

Performs the operation.

Allocation

mmal(sz)

Performs the operation. Takes sz.

mmfr(pt)

Creates from another format. Takes pt.

mmrsz(pt, ns)

Returns the size or count. Takes pt, ns.

Pool

mmpne(op)

Creates a new instance. Takes op.

mmpgt(po)

Performs the operation. Takes po.

mmprf(po, pt)

Performs the operation. Takes po, pt.

mmpcr(po)

Creates a new instance. Takes po.

Slab

mmsln(sz, cn)

Performs the operation. Takes sz, cn.

mmslg(sl)

Performs the operation. Takes sl.

mmslr(sl, pt)

Performs the operation. Takes sl, pt.

Reference counting

mmrc0(pt)

Performs the operation. Takes pt.

mmrcn(rf)

Performs the operation. Takes rf.

mmrcd(rf)

Performs the operation. Takes rf.

Weak refs

mmwkg()

Performs the operation.

mmwgr(wk)

Performs the operation. Takes wk.

GC

mmgcr()

Creates a new instance.

mmgcs()

Performs the operation.

mmgcf()

Performs the operation.

mmgct(op)

Performs the operation. Takes op.

Profiling

mmprs()

Resets.

mmprl(pr, sz)

Performs the operation. Takes pr, sz.

mmpr0(pr, pt)

Performs the operation. Takes pr, pt.

mmpr1(pr, pt, ns)

Performs the operation. Takes pr, pt, ns.

mmprr(pr)

Performs the operation. Takes pr.

Tracking

mmtrn()

Performs the operation.

mmtrl(tr, sz, fl, ln)

Performs the operation. Takes tr, sz, fl, ln.

mmtrf(tr, pt)

Performs the operation. Takes tr, pt.

mmtr0(tr)

Performs the operation. Takes tr.

mmtrs(tr)

Resets. Takes tr.

Barrier

mmbrw(pt)

Performs the operation. Takes pt.

mmbrr(pt)

Performs the operation. Takes pt.

Notes

  • Memory-mapped files.