diff options
author | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-04-07 08:01:42 +0000 |
---|---|---|
committer | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-04-07 08:01:42 +0000 |
commit | 22b297cdeaa7704bc964a76562dcf8aed710c2bb (patch) | |
tree | 7f963ae6b27df44232d80c837e9ccc32932e94af /boehm-gc/alloc.c | |
parent | 386fe957b821b33f2ff2724bf5aaf0c6030c6a99 (diff) | |
download | gcc-22b297cdeaa7704bc964a76562dcf8aed710c2bb.tar.gz |
Cygnus/libgcj changes to Boehm GC.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@26257 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'boehm-gc/alloc.c')
-rw-r--r-- | boehm-gc/alloc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/boehm-gc/alloc.c b/boehm-gc/alloc.c index d60544a3205..c9d145e0369 100644 --- a/boehm-gc/alloc.c +++ b/boehm-gc/alloc.c @@ -95,6 +95,7 @@ int GC_timeout_stop_func GC_PROTO((void)) unsigned long time_diff; if ((count++ & 3) != 0) return(0); +#ifndef NO_CLOCK GET_TIME(current_time); time_diff = MS_TIME_DIFF(current_time,GC_start_time); if (time_diff >= TIME_LIMIT) { @@ -104,6 +105,7 @@ int GC_timeout_stop_func GC_PROTO((void)) # endif return(1); } +#endif return(0); } @@ -234,7 +236,9 @@ void GC_maybe_gc() /* We try to mark with the world stopped. */ /* If we run out of time, this turns into */ /* incremental marking. */ +#ifndef NO_CLOCK GET_TIME(GC_start_time); +#endif if (GC_stopped_mark(GC_timeout_stop_func)) { # ifdef SAVE_CALL_CHAIN GC_save_callers(GC_last_stack); |