OSDN Git Service

Avoid using dex cache array pointers in libart.
authorVladimir Marko <vmarko@google.com>
Thu, 9 Apr 2015 13:13:13 +0000 (14:13 +0100)
committerVladimir Marko <vmarko@google.com>
Fri, 10 Apr 2015 17:46:03 +0000 (18:46 +0100)
commitc136312832d4be25db2ecc5673967d71d0ad4b9c
treeb9cdcccdd947632b2031ae2b4c3a9c3658ef3366
parent1576be32be4a99a1cffdaaf209a3cd67e8b2f88a
Avoid using dex cache array pointers in libart.

In preparation for making dex cache arrays native, avoid
using them in Java code.

This causes a performance regression for our reflection
benchmarks. Class_getDeclaredMethod and Class_getMethod
take an up to 30% hit, measured using the Quick compiler.
We accept this hit at this stage and we will tune the
performance after we're done with the larger effort.

Companion libcore/ change:
    https://android-review.googlesource.com/146069

Bug: 20134538
Change-Id: Ibbef3b50043a1311cd40723ed42e1f1c609b8fc1
runtime/mirror/art_method-inl.h
runtime/mirror/art_method.h
runtime/mirror/dex_cache-inl.h
runtime/native/java_lang_Class.cc
runtime/native/java_lang_DexCache.cc