Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b3147489 authored by Shih-wei Liao's avatar Shih-wei Liao Committed by Android (Google) Code Review
Browse files

Merge "Make ScriptC's mEnvironment.mIsThreadable survive the bcc caching and then cache-reloading."

parents ef187959 b7282bd2
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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);