diff options
Diffstat (limited to 'js/public/GCAPI.h')
-rw-r--r-- | js/public/GCAPI.h | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/js/public/GCAPI.h b/js/public/GCAPI.h index 5773838e46..a7fcee3d42 100644 --- a/js/public/GCAPI.h +++ b/js/public/GCAPI.h @@ -440,15 +440,9 @@ typedef enum JSGCParamKey { JSGC_URGENT_THRESHOLD_MB = 48, /** - * Set the number of threads to use for parallel marking, or zero to use the - * default. - * - * The actual number used is capped to the number of available helper threads. - * - * This is provided for testing purposes. + * Get the number of threads used for parallel marking. * * Pref: None. - * Default: 0 (no effect). */ JSGC_MARKING_THREAD_COUNT = 49, @@ -468,6 +462,18 @@ typedef enum JSGCParamKey { */ JSGC_SEMISPACE_NURSERY_ENABLED = 51, + /** + * Set the maximum number of threads to use for parallel marking, if enabled. + * + * The actual number used is calculated based on the number of available + * helper threads and can be found by getting the JSGC_MARKING_THREAD_COUNT + * parameter. + * + * Pref: javascript.options.mem.gc_max_parallel_marking_threads + * Default: 2. + */ + JSGC_MAX_MARKING_THREADS = 52, + } JSGCParamKey; /* |