diff options
author | 2024-04-18 13:21:15 +0000 | |
---|---|---|
committer | 2024-04-22 07:28:48 +0000 | |
commit | 4a79b17f374df876803e34edb60476fe33ab1671 (patch) | |
tree | 12c07faf384d12d7ae535300f8218527628144b1 /compiler/optimizing/intrinsics.h | |
parent | 55e99bd1c5a403c4bddc023403593c9199af56f2 (diff) |
Optimizing: Treat app image objects as non-movable.
Treat app image objects similar to boot image objects and
avoid unnecessary read barriers for app image `HLoadClass`
and `HInstanceOf` checks with app image `HLoadClass` input.
Extend other optimizations to treat app image classes the
same way as boot image classes even though this remains
mostly dormant because we currently do not initialize app
image classes with class initializers; the experimental
flag `--initialize-app-image-classes` is false by default.
Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing --speed-profile
Bug: 38313278
Change-Id: I359dd8897f6d128213602f5731d40edace298ab8
Diffstat (limited to 'compiler/optimizing/intrinsics.h')
-rw-r--r-- | compiler/optimizing/intrinsics.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/optimizing/intrinsics.h b/compiler/optimizing/intrinsics.h index 0a431b8aa8..7a27b2506b 100644 --- a/compiler/optimizing/intrinsics.h +++ b/compiler/optimizing/intrinsics.h @@ -279,7 +279,7 @@ class VarHandleOptimizations : public IntrinsicOptimizations { // Note that the object null check is controlled by the above flag `SkipObjectNullCheck` // and arrays and byte array views (which always need a range check and sometimes also // array type check) are currently unsupported. - INTRINSIC_OPTIMIZATION(UseKnownBootImageVarHandle, 2); + INTRINSIC_OPTIMIZATION(UseKnownImageVarHandle, 2); }; #undef INTRISIC_OPTIMIZATION |