summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorNarayan Kamath <narayan@google.com>2014-08-08 13:43:59 +0100
committerNarayan Kamath <narayan@google.com>2014-08-08 17:39:59 +0000
commit05e8f801b54d43ae43f86a310217ec6f931b5738 (patch)
tree2dfea8a4eb0b2de13e9a77eab9f0f97244922694 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent6d9fe654b5da2f2b7751b6affae535f4ddfa7f64 (diff)
Reduce the frequency of calls to isDexOptNeededInternal.
The package manager maintains a set of dexopted instruction sets as a fast path to avoid calling expensive code. We were correctly adding elements to that list while performing dexopt, but were *not* adding elements to the list when isDexOptNeededInternal told us things were up to date. As a result, we'd hit the slow path 100% of the time on userdebug builds in the steady state, i.e, when the system did not dexopt anything since boot. With this change, we make sure isDexOptNeededInternal is called precisely once per boot in such case. This patch also fixes broken logic for apps that have multiple code paths. We must mark the paths as dexopted only if we've processed all paths. bug: 16828525 bug: 16868741 Change-Id: Icb59121fe915d892e677d9b7e9a4efd11555ae27
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions