[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

GC function

The discussion concerning (GC) suggests that a major use would be to
trigger garbage collection so that delays could be avoided during some
subsequent processing, such as benchmarks or real-time operations.  It
seems a bit devious to invoke garbage collection for the purpose of 
preventing it, so perhaps a more direct approach to this application could
be used:

   without-gc-delay form                            [Macro]

   Evaluates form and returns what form returns, but prevents (as far as
   is reasonable for the implementation) delays due to garbage collection.

It could be left up to the implementation to decide whether garbage collection
should be done before evaluating the form.  Obviously, it is possible that
some forms which could otherwise be handled might exhaust available memory
when processed in this manner, unless the implementation can provide for 
doing garbage collection if it can be seen to be necessary.

Does this make sense over a reasonably broad range of implementations?
Is it sufficiently useful to be included in the language?

- Jim Hassett