diff options
| author | 2018-11-14 14:21:23 +0000 | |
|---|---|---|
| committer | 2018-11-27 17:31:01 +0000 | |
| commit | e36e7f2226e4e08b7a7094f78cb80bbe0e729c2b (patch) | |
| tree | 0787ae19a232728121a60791f3a18094529120f1 /runtime/interpreter/interpreter_cache.h | |
| parent | 244470afafdb1c5aba17507ef793d316b9c4d038 (diff) | |
Store ImtIndex in ArtMethod.
This avoids recalculation and reduces pressure on the thread local cache.
This halves the time we spend hashing from 2% to 1% (maps on device).
Test: ./art/test.py -b --host --64
Change-Id: I2407bd9c222de4ddc6eea938908a1ac6d7abc35b
Diffstat (limited to 'runtime/interpreter/interpreter_cache.h')
| -rw-r--r-- | runtime/interpreter/interpreter_cache.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/runtime/interpreter/interpreter_cache.h b/runtime/interpreter/interpreter_cache.h index 355058f4f6..003ea6c8d3 100644 --- a/runtime/interpreter/interpreter_cache.h +++ b/runtime/interpreter/interpreter_cache.h @@ -38,7 +38,6 @@ class Thread; // iget/iput: The field offset. The field must be non-volatile. // sget/sput: The ArtField* pointer. The field must be non-volitile. // invoke: The ArtMethod* pointer (before vtable indirection, etc). -// ArtMethod*: The ImtIndex of the method. // // We ensure consistency of the cache by clearing it // whenever any dex file is unloaded. |