[seed] major memory reductions by garbage collecting at end of closure (example was timeout loops) - it mig



commit 5628064de12cdfd00eecbfe2860a8dc16f67f8d9
Author: Alan Knowles <alan akbkhome com>
Date:   Thu May 17 23:06:40 2012 +0800

    major memory reductions by garbage collecting at end of closure (example was timeout loops) - it might be worth exposing this somehow so  user space so it can be called manually...

 libseed/seed-closure.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/libseed/seed-closure.c b/libseed/seed-closure.c
index 1066a12..9659ded 100644
--- a/libseed/seed-closure.c
+++ b/libseed/seed-closure.c
@@ -288,6 +288,9 @@ seed_handle_closure (ffi_cif * cif, void *result, void **args, gpointer userdata
       *(gpointer *) result = 0;
     }
   g_base_info_unref ((GIBaseInfo *) return_type);
+  
+  JSGarbageCollect(ctx);
+
   JSGlobalContextRelease ((JSGlobalContextRef) ctx);
 }
 



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