bug 715883 - eliminating no longr used JSRuntime::gcEmptyArenaPoolLifespan and related code. r=gal

This commit is contained in:
Igor Bukanov 2012-01-06 16:42:18 +01:00
parent 83046cb819
commit 9792b639a6
5 changed files with 0 additions and 12 deletions

View File

@ -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:

View File

@ -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,

View File

@ -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.

View File

@ -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

View File

@ -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},
};