OSDN Git Service

Reduce calls to DescriptorEquals
authorMathieu Chartier <mathieuc@google.com>
Thu, 1 Dec 2016 22:21:11 +0000 (14:21 -0800)
committerMathieu Chartier <mathieuc@google.com>
Tue, 6 Dec 2016 19:01:52 +0000 (11:01 -0800)
commit58c3f6a0d15a4340c0a11ab7fbc8c4b990c64b77
tree18788ed5f6ffb44679acaee8faff9a5caf237f13
parente4cdd4dbcbc75e373917d22214cd431643cd3610
Reduce calls to DescriptorEquals

Store the low 3 bits of the descriptor hash inside of class set
entries. Compare these bits before comparing descriptors.

Simpleperf interpret-only compile of facebook:
mirror::Class::DescriptorEquals(char const*): 3.66% -> 1.03%

Bug: 32641252

Test: test-art-host

Change-Id: I8d898d4ac7c95383c49401fbcd85bfde226e026c
compiler/image_writer.cc
patchoat/patchoat.cc
runtime/class_linker.cc
runtime/class_table-inl.h
runtime/class_table.cc
runtime/class_table.h
runtime/gc_root.h
runtime/oat.h