Bug 1037510, part 1 - Add nursery size as a parameter of CycleCollectedJSRuntime. r=khuey
This commit is contained in:
@@ -84,6 +84,9 @@ using mozilla::Preferences;
|
||||
// The size of the worker runtime heaps in bytes. May be changed via pref.
|
||||
#define WORKER_DEFAULT_RUNTIME_HEAPSIZE 32 * 1024 * 1024
|
||||
|
||||
// The size of the generational GC nursery for workers, in bytes.
|
||||
#define WORKER_DEFAULT_NURSERY_SIZE JS::DefaultNurseryBytes
|
||||
|
||||
// The size of the worker JS allocation threshold in MB. May be changed via pref.
|
||||
#define WORKER_DEFAULT_ALLOCATION_THRESHOLD 30
|
||||
|
||||
@@ -862,7 +865,8 @@ public:
|
||||
// call to JS_SetGCParameter inside CreateJSContextForWorker.
|
||||
WorkerJSRuntime(JSRuntime* aParentRuntime, WorkerPrivate* aWorkerPrivate)
|
||||
: CycleCollectedJSRuntime(aParentRuntime,
|
||||
WORKER_DEFAULT_RUNTIME_HEAPSIZE),
|
||||
WORKER_DEFAULT_RUNTIME_HEAPSIZE,
|
||||
WORKER_DEFAULT_NURSERY_SIZE),
|
||||
mWorkerPrivate(aWorkerPrivate)
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user