interplane.Get Omega
Read in your language

omega-mv

Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.

Brought by drakestapleton

branch main Branches Tags History

omega-mv / seed / omc / tests / pools / g8c.om

15 lines · 347 bytes Raw Blame History
1note gate-pools 8 (recorded): touch 128 MiB of a pool, one byte per page. Under
2note systemd-run --user --scope -p MemoryMax=64M the expected result is the kernel's OOM kill (137).
3global U uchar *
4fn main to int
5r = enlarge U ulong 134217728
6if ne r 0
7ret 3
8end
9i = ulong 0
10while lt i 134217728 bound 40000
11put U i 1
12i = add i 4096
13end
14ret 0
15end