module vrt.gc.sbrk

Code Map

module vrt.gc.sbrk;


struct SBrk
{
public:
	enum Max;
	enum Own;


public:
	cur: void*;
	left: size_t;
	used: size_t;


public:
	fn setup() { }
	fn shutdown() { }
	fn collect() { }
	fn getStats(stats: Stats) { }
	fn totalSize() size_t { }
	fn allocEntry(typeinfo: TypeInfo, count: size_t) void* { }
	fn alloc(size: size_t) void* { }
}

global inst: SBrk;

fn sbrk(increment: intptr_t) void*;