Commit 3633e894 authored by Simon Marlow's avatar Simon Marlow
Browse files

remove performGCWithRoots()

I don't think this can ever be useful, because to add more roots you
need to do it consistently for every GC.  The right way to add roots
is to use newStablePtr.
parent b34e749e
......@@ -88,7 +88,6 @@ typedef void (*evac_fn)(StgClosure **);
extern void performGC(void);
extern void performMajorGC(void);
extern void performGCWithRoots(void (*get_roots)(evac_fn));
extern HsInt64 getAllocations( void );
extern void revertCAFs( void );
extern void dirty_MUT_VAR(StgRegTable *reg, StgClosure *p);
......@@ -2670,11 +2670,6 @@ GetRoots( evac_fn evac )
This is the interface to the garbage collector from Haskell land.
We provide this so that external C code can allocate and garbage
collect when called from Haskell via _ccall_GC.
It might be useful to provide an interface whereby the programmer
can specify more roots (ToDo).
This needs to be protected by the GC condition variable above. KH.
-------------------------------------------------------------------------- */
static void (*extra_roots)(evac_fn);
......@@ -2712,13 +2707,6 @@ AllRoots(evac_fn evac)
extra_roots(evac); // the user's roots
performGCWithRoots(void (*get_roots)(evac_fn))
extra_roots = get_roots;
performGC_(rtsFalse, AllRoots);
/* -----------------------------------------------------------------------------
Stack overflow
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment