mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-04 07:40:42 +00:00
bug 715883 - eliminating no longr used JSRuntime::gcEmptyArenaPoolLifespan and related code. r=gal
This commit is contained in:
parent
83046cb819
commit
9792b639a6
@ -692,7 +692,6 @@ JSRuntime::JSRuntime()
|
||||
gcLastBytes(0),
|
||||
gcMaxBytes(0),
|
||||
gcMaxMallocBytes(0),
|
||||
gcEmptyArenaPoolLifespan(0),
|
||||
gcNumArenasFreeCommitted(0),
|
||||
gcNumber(0),
|
||||
gcIncrementalTracer(NULL),
|
||||
@ -2902,9 +2901,6 @@ JS_SetGCParameter(JSRuntime *rt, JSGCParamKey key, uint32_t value)
|
||||
case JSGC_MAX_MALLOC_BYTES:
|
||||
rt->setGCMaxMallocBytes(value);
|
||||
break;
|
||||
case JSGC_STACKPOOL_LIFESPAN:
|
||||
rt->gcEmptyArenaPoolLifespan = value;
|
||||
break;
|
||||
default:
|
||||
JS_ASSERT(key == JSGC_MODE);
|
||||
rt->gcMode = JSGCMode(value);
|
||||
@ -2922,8 +2918,6 @@ JS_GetGCParameter(JSRuntime *rt, JSGCParamKey key)
|
||||
return rt->gcMaxBytes;
|
||||
case JSGC_MAX_MALLOC_BYTES:
|
||||
return rt->gcMaxMallocBytes;
|
||||
case JSGC_STACKPOOL_LIFESPAN:
|
||||
return rt->gcEmptyArenaPoolLifespan;
|
||||
case JSGC_BYTES:
|
||||
return rt->gcBytes;
|
||||
case JSGC_MODE:
|
||||
|
@ -2969,9 +2969,6 @@ typedef enum JSGCParamKey {
|
||||
/* Number of JS_malloc bytes before last ditch GC. */
|
||||
JSGC_MAX_MALLOC_BYTES = 1,
|
||||
|
||||
/* Hoard stackPools for this long, in ms, default is 30 seconds. */
|
||||
JSGC_STACKPOOL_LIFESPAN = 2,
|
||||
|
||||
/* Amount of bytes allocated by the GC. */
|
||||
JSGC_BYTES = 3,
|
||||
|
||||
|
@ -419,7 +419,6 @@ struct JSRuntime
|
||||
size_t gcLastBytes;
|
||||
size_t gcMaxBytes;
|
||||
size_t gcMaxMallocBytes;
|
||||
uint32_t gcEmptyArenaPoolLifespan;
|
||||
|
||||
/*
|
||||
* Number of the committed arenas in all GC chunks including empty chunks.
|
||||
|
@ -891,7 +891,6 @@ js_InitGC(JSRuntime *rt, uint32_t maxbytes)
|
||||
*/
|
||||
rt->gcMaxBytes = maxbytes;
|
||||
rt->setGCMaxMallocBytes(maxbytes);
|
||||
rt->gcEmptyArenaPoolLifespan = 30000;
|
||||
|
||||
/*
|
||||
* The assigned value prevents GC from running when GC memory is too low
|
||||
|
@ -1234,7 +1234,6 @@ static const struct ParamPair {
|
||||
} paramMap[] = {
|
||||
{"maxBytes", JSGC_MAX_BYTES },
|
||||
{"maxMallocBytes", JSGC_MAX_MALLOC_BYTES},
|
||||
{"gcStackpoolLifespan", JSGC_STACKPOOL_LIFESPAN},
|
||||
{"gcBytes", JSGC_BYTES},
|
||||
{"gcNumber", JSGC_NUMBER},
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user