OSDN Git Service

Stop interpreter from accessing code items of compiled code.
authorJeff Hao <jeffhao@google.com>
Mon, 27 Feb 2017 22:47:06 +0000 (14:47 -0800)
committerJeff Hao <jeffhao@google.com>
Thu, 9 Mar 2017 00:36:13 +0000 (00:36 +0000)
commitdf79ddb545f0d6e71d6eebb9cb94aa6916351ee9
tree3fb9da92f3049c3afa99920898b0ddc57e68b074
parent68948e01f56ad1996af77f4c0aab721940b0e18d
Stop interpreter from accessing code items of compiled code.

The ArtInterpreterToCompiledCodeBridge accesses the code item in a
number of places to handle argument marshalling. However, the code item
of a compiled method should have no need to be accessed by the runtime
at all, since the code has been compiled. By removing these accesses,
there is a drop in the memory footprint of the dex file, since these
code items remain untouched by the runtime.

Bug: 35800981
Test: mm test-art-host
Change-Id: Ib7d29c17e80b1690aa819d083f5b12739492ebd6
runtime/common_dex_operations.h
runtime/interpreter/interpreter.cc
runtime/interpreter/interpreter_common.cc
runtime/interpreter/interpreter_common.h