[gjs] runtime: enable incremental GC



commit 3e1bc71404811c7695e2854e1deff70ae3292824
Author: Giovanni Campagna <gcampagna src gnome org>
Date:   Tue Feb 18 03:20:39 2014 +0100

    runtime: enable incremental GC
    
    Incremental GC mean that we no longer need long GC pauses that
    block the application, and that were especially visible in long-running
    apps like polari.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=724797

 gjs/runtime.cpp |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gjs/runtime.cpp b/gjs/runtime.cpp
index 37d9fc0..e69d679 100644
--- a/gjs/runtime.cpp
+++ b/gjs/runtime.cpp
@@ -301,6 +301,7 @@ gjs_runtime_for_current_thread(void)
 
         JS_SetNativeStackQuota(runtime, 1024*1024);
         JS_SetGCParameter(runtime, JSGC_MAX_BYTES, 0xffffffff);
+        JS_SetGCParameter(runtime, JSGC_MODE, JSGC_MODE_INCREMENTAL);
         JS_SetLocaleCallbacks(runtime, &gjs_locale_callbacks);
         JS_AddFinalizeCallback(runtime, gjs_finalize_callback, data);
         JS_SetErrorReporter(runtime, gjs_error_reporter);


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