bug 519476 - replacing JSSTRING_DEFLATED with scanning of the deflated cache. r=jwalden,dmandelin
This commit is contained in:
@@ -501,6 +501,7 @@ js_InitCommonAtoms(JSContext *cx)
|
||||
JS_ASSERT((uint8 *)atoms - (uint8 *)state == LAZY_ATOM_OFFSET_START);
|
||||
memset(atoms, 0, ATOM_OFFSET_LIMIT - LAZY_ATOM_OFFSET_START);
|
||||
|
||||
cx->runtime->emptyString = ATOM_TO_STRING(state->emptyAtom);
|
||||
return JS_TRUE;
|
||||
}
|
||||
|
||||
@@ -516,8 +517,8 @@ js_atom_unpinner(JSDHashTable *table, JSDHashEntryHdr *hdr,
|
||||
void
|
||||
js_FinishCommonAtoms(JSContext *cx)
|
||||
{
|
||||
cx->runtime->emptyString = NULL;
|
||||
JSAtomState *state = &cx->runtime->atomState;
|
||||
|
||||
JS_DHashTableEnumerate(&state->stringAtoms, js_atom_unpinner, NULL);
|
||||
#ifdef DEBUG
|
||||
memset(COMMON_ATOMS_START(state), JS_FREE_PATTERN,
|
||||
|
||||
Reference in New Issue
Block a user