This fix is for a correctness bug. An app may black-screens due to this caching bug.
The 1-character fix is straightforward. I just added "!" before an if-expression.
I.e., when a cache file is NOT threadable, we should clear the threadable. The bug
is because I missed the "NOT" above. This issue is different from 3398625.
Change-Id: Iae89a0a754fbd5ad74f80be4d7744fb6734680a7
diff --git a/lib/bcc/Script.cpp b/lib/bcc/Script.cpp
index cb86ef5..0e20d9e 100644
--- a/lib/bcc/Script.cpp
+++ b/lib/bcc/Script.cpp
@@ -191,7 +191,7 @@
// Dirty hack for libRS.
// TODO(all): This dirty hack should be removed in the future.
- if (cached->isLibRSThreadable() && mpExtSymbolLookupFn) {
+ if (!cached->isLibRSThreadable() && mpExtSymbolLookupFn) {
mpExtSymbolLookupFn(mpExtSymbolLookupFnContext, "__clearThreadable");
}