USING: generic kernel kernel.private math memory prettyprint io sequences tools.test words namespaces layouts classes classes.builtin arrays quotations io.launcher system ; IN: memory.tests [ ] [ { } { } become ] unit-test ! LOL [ ] [ vm "-i=" image append "-generations=2" "-e=USING: memory io prettyprint system ; input-stream gc . 0 exit" 4array try-process ] unit-test [ [ ] instances ] must-infer ! Code GC wasn't kicking in when needed : leak-step ( -- ) 800000 f 1quotation call( -- obj ) drop ; : leak-loop ( -- ) 100 [ leak-step ] times ; [ ] [ leak-loop ] unit-test TUPLE: testing x y z ; [ save-image-and-exit ] must-fail [ ] [ num-types get [ type>class [ dup . flush "predicate" word-prop instances [ class drop ] each ] when* ] each ] unit-test ! Erg's bug 2 [ [ [ 3 throw ] instances ] must-fail ] times