-USING: generic kernel kernel.private math memory prettyprint
+USING: generic kernel kernel.private math memory prettyprint io
sequences tools.test words namespaces layouts classes
classes.builtin arrays quotations ;
IN: memory.tests
[ ] [
num-types get [
type>class [
+ dup . flush
"predicate" word-prop instances [
class drop
] each
DEFINE_PRIMITIVE(save_image_and_exit)
{
- /* This reduces deployed image size */
- strip_compiled_quotations();
-
+ /* We unbox this before doing anything else. This is the only point
+ where we might throw an error, so we have to throw an error here since
+ later steps destroy the current image. */
F_CHAR *path = unbox_native_string();
REGISTER_C_STRING(path);
+ /* This reduces deployed image size */
+ strip_compiled_quotations();
+
/* strip out userenv data which is set on startup anyway */
CELL i;
for(i = 0; i < FIRST_SAVE_ENV; i++)