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
omega-mv / seed / omc / tests / pools / g8c.om
| 1 | note gate-pools 8 (recorded): touch 128 MiB of a pool, one byte per page. Under |
| 2 | note systemd-run --user --scope -p MemoryMax=64M the expected result is the kernel's OOM kill (137). |
| 3 | global U uchar * |
| 4 | fn main to int |
| 5 | r = enlarge U ulong 134217728 |
| 6 | if ne r 0 |
| 7 | ret 3 |
| 8 | end |
| 9 | i = ulong 0 |
| 10 | while lt i 134217728 bound 40000 |
| 11 | put U i 1 |
| 12 | i = add i 4096 |
| 13 | end |
| 14 | ret 0 |
| 15 | end |