maybe_gc() takes an argument; compile-gc didn't take this into account
parent
d8466f6bc6
commit
75d3509c09
|
@ -60,4 +60,4 @@ kernel-internals math namespaces sequences words ;
|
|||
: if-void ( type true false -- | false: type -- )
|
||||
pick "void" = [ drop nip call ] [ nip call ] if ; inline
|
||||
|
||||
: compile-gc "maybe_gc" f %alien-invoke , ;
|
||||
: compile-gc "simple_gc" f %alien-invoke , ;
|
||||
|
|
|
@ -353,8 +353,13 @@ void maybe_gc(CELL size)
|
|||
}
|
||||
}
|
||||
|
||||
void primitive_gc_time(void)
|
||||
void simple_gc(void)
|
||||
{
|
||||
maybe_gc(0);
|
||||
}
|
||||
|
||||
void primitive_gc_time(void)
|
||||
{
|
||||
simple_gc();
|
||||
dpush(tag_bignum(s48_long_long_to_bignum(gc_time)));
|
||||
}
|
||||
|
|
|
@ -121,5 +121,6 @@ INLINE void* allot_object(CELL type, CELL length)
|
|||
CELL collect_next(CELL scan);
|
||||
void garbage_collection(CELL gen);
|
||||
void primitive_gc(void);
|
||||
DLLEXPORT void maybe_gc(CELL size);
|
||||
void maybe_gc(CELL size);
|
||||
DLLEXPORT void simple_gc(void);
|
||||
void primitive_gc_time(void);
|
||||
|
|
Loading…
Reference in New Issue