From b41cb2d7b7cc1a10f4f68f9c8f544f916f448822 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 12 Aug 2022 00:54:27 +0200 Subject: main: introduce -g flag to allow enabling periodic gc from cli Implement a new flag `-g` which takes an interval value and enables the periodic GC with the given interval for cyclic object structures in the VM if specified. Signed-off-by: Jo-Philipp Wich --- tests/cram/test_basic.t | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests') diff --git a/tests/cram/test_basic.t b/tests/cram/test_basic.t index 5911ac9..c33dee9 100644 --- a/tests/cram/test_basic.t +++ b/tests/cram/test_basic.t @@ -25,6 +25,10 @@ check that ucode provides exepected help: -t Enable VM execution tracing. + -g interval + Perform periodic garbage collection every `interval` object + allocations. + -S Enable strict mode. -- cgit v1.2.3