diff options
author | Mathieu Chartier <mathieuc@google.com> | 2014-11-27 00:06:30 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2014-11-27 00:06:30 +0000 |
commit | bd6bb37c377e78aeafb4faf9acd70efbcbc62d30 (patch) | |
tree | f098642047c7a88bddc0ea941fd8fdfa98e3b940 /runtime | |
parent | 7939a254e79834746fc52827c6bc0667f098e7db (diff) | |
parent | cd195fe131842ad9ca7909203d479d325feaf9dd (diff) | |
download | android_art-bd6bb37c377e78aeafb4faf9acd70efbcbc62d30.tar.gz android_art-bd6bb37c377e78aeafb4faf9acd70efbcbc62d30.tar.bz2 android_art-bd6bb37c377e78aeafb4faf9acd70efbcbc62d30.zip |
Merge "Add a way to change the IMT size"
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/mirror/class.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/runtime/mirror/class.h b/runtime/mirror/class.h index a77972efc5..56867dd319 100644 --- a/runtime/mirror/class.h +++ b/runtime/mirror/class.h @@ -29,6 +29,10 @@ #include "read_barrier_option.h" #include "utils.h" +#ifndef IMT_SIZE +#error IMT_SIZE not defined +#endif + namespace art { struct ClassOffsets; @@ -58,7 +62,7 @@ class MANAGED Class FINAL : public Object { // Interface method table size. Increasing this value reduces the chance of two interface methods // colliding in the interface method table but increases the size of classes that implement // (non-marker) interfaces. - static constexpr size_t kImtSize = 64; + static constexpr size_t kImtSize = IMT_SIZE; // imtable entry embedded in class object. struct MANAGED ImTableEntry { |