Merge "Make ScriptC's mEnvironment.mIsThreadable survive the bcc caching and then cache-reloading."
This commit is contained in:
committed by
Android (Google) Code Review
commit
b314748911
@@ -378,6 +378,12 @@ void ScriptCState::clear(Context *rsc) {
|
||||
static BCCvoid* symbolLookup(BCCvoid* pContext, const BCCchar* name) {
|
||||
const ScriptCState::SymbolTable_t *sym;
|
||||
ScriptC *s = (ScriptC *)pContext;
|
||||
if (!strcmp(name, "__isThreadable")) {
|
||||
return (BCCvoid*) s->mEnviroment.mIsThreadable;
|
||||
} else if (!strcmp(name, "__clearThreadable")) {
|
||||
s->mEnviroment.mIsThreadable = false;
|
||||
return NULL;
|
||||
}
|
||||
sym = ScriptCState::lookupSymbol(name);
|
||||
if (!sym) {
|
||||
sym = ScriptCState::lookupSymbolCL(name);
|
||||
|
||||
Reference in New Issue
Block a user