From 65128e6af3d260c365085ce963c621be28fc9dcf Mon Sep 17 00:00:00 2001 From: slava Date: Tue, 31 Oct 2006 06:04:02 +0000 Subject: [PATCH] Remove unused function from runtime --- TODO.FACTOR.txt | 16 +++++++++++----- vm/data_gc.c | 8 +------- vm/data_gc.h | 2 -- 3 files changed, 12 insertions(+), 14 deletions(-) diff --git a/TODO.FACTOR.txt b/TODO.FACTOR.txt index 53a40ee372..23c1ec3ea5 100644 --- a/TODO.FACTOR.txt +++ b/TODO.FACTOR.txt @@ -1,12 +1,17 @@ -- fix compiled gc check - - there was a performance hit, investigate - - float boxing and overflow checks need a gc check too -- [ [ dup call ] dup call ] infer hangs ++ allot refactoring: + +- rethink all string conversions +- what if retain stack is full + - ie, inside retain stack overflow handler, don't cons? +- os-windows.c error_message &co +- to_float, to_fixnum, to_bignum: don't cons +- inline float allocation needs a gc check +- alien invoke, callback need a gc check - relocation should not cons at all -- docs: mention that 'like' may destroy the underlying sequence + ui: +- docs: mention that 'like' may destroy the underlying sequence - live search: timer delay would be nice - menu should stay up if mouse button released - roundoff is still not quite right with tracks @@ -43,6 +48,7 @@ + compiler/ffi: +- [ [ dup call ] dup call ] infer hangs - stdcall callbacks - callstack overflow when compiling mutually recursive inline words - test what is done in the case of an invalid declaration on an inline diff --git a/vm/data_gc.c b/vm/data_gc.c index a88e28abcc..0202de59aa 100644 --- a/vm/data_gc.c +++ b/vm/data_gc.c @@ -590,13 +590,7 @@ void primitive_data_gc(void) garbage_collection(gen,false); } -void simple_gc(void) -{ - maybe_gc(0); -} - void primitive_gc_time(void) { - simple_gc(); - dpush(tag_bignum(s48_long_long_to_bignum(gc_time))); + box_unsigned_8(gc_time); } diff --git a/vm/data_gc.h b/vm/data_gc.h index 30995333ad..d54cc47d2a 100644 --- a/vm/data_gc.h +++ b/vm/data_gc.h @@ -217,6 +217,4 @@ INLINE void* allot_object(CELL type, CELL length) void update_cards_offset(void); CELL collect_next(CELL scan); void primitive_data_gc(void); -void maybe_gc(CELL size); -DLLEXPORT void simple_gc(void); void primitive_gc_time(void);