}
void* entry = dvmHashTableLookup(table, key, (void*)value,
dvmHashcmpStrings, true);
- assert(entry == value);
return (StringObject*)entry;
}
*/
dvmHashTableRemove(gDvm.internedStrings, key, interned);
found = insertString(gDvm.literalStrings, key, interned);
+ assert(found == interned);
} else {
/*
* No match in the literal table or the interned
* table. Insert into the literal table.
*/
found = insertString(gDvm.literalStrings, key, strObj);
+ assert(found == strObj);
}
}
} else {
if (found == NULL) {
/*
* No match was found in the literal table. Insert into
- * the intern table.
+ * the intern table if it does not already exist.
*/
found = insertString(gDvm.internedStrings, key, strObj);
}