diff options
| author | Andy McFadden <fadden@android.com> | 2010-05-06 13:39:07 -0700 |
|---|---|---|
| committer | Andy McFadden <fadden@android.com> | 2010-05-06 15:25:39 -0700 |
| commit | d07cf9d69dddeebb91386a88f7b6d2323cf125a9 (patch) | |
| tree | 686d53970cae1a09ca1d24a31b30f609acf41b6c /vm/compiler/codegen/arm/LocalOptimizations.c | |
| parent | fd1674c75d7b6500168137a2213877e45e49bbd2 (diff) | |
Plug leak in class initialization.
Don't add static fields and methods to the resolved-items table if the
defining class is still being initialized. If we do, other threads can
then access those fields and methods without first performing an "is the
class initialized" test.
We will end up performing static field and method resolution more often
now than before. On a Nexus One, zygote class preload time went from
2227ms to 2239ms (i.e. the performance difference is in the noise).
Bug 2655384.
Change-Id: Ib0c285ef23d58ae709be65f09efb68e73f982084
Diffstat (limited to 'vm/compiler/codegen/arm/LocalOptimizations.c')
0 files changed, 0 insertions, 0 deletions
