diff options
author | Alex Light <allight@google.com> | 2019-11-25 13:47:01 -0800 |
---|---|---|
committer | Treehugger Robot <treehugger-gerrit@google.com> | 2019-12-02 16:57:13 +0000 |
commit | 4e7dd70e3ee7a25089bed791df8865966cb4b837 (patch) | |
tree | 3cd2e8afc92262f0cdf474bcdbddde1723976575 /compiler/optimizing/graph_visualizer.cc | |
parent | 08d0984bfeaff1a1bc2db2d51ecf45f2867b3bc4 (diff) |
Make opaque-jni-ids:swapable more efficient
-Xopaque-jni-ids:swapable was rather memory inefficient, allocating an
entire PointerSizedArray to mark a method/field as having a
Pointer-id. Since normally these will not be used once the JNI id type
moves to kPointer this is rather wasteful. By changing to instead have
a single marker object which is used instead of the full PointerArray
we can use significantly less memory in common use-cases.
Test: Manual
Test: count-fields.py
Bug: 134162467
Change-Id: I224f0810373afef2335fad092eb758f91455f9e5
Diffstat (limited to 'compiler/optimizing/graph_visualizer.cc')
0 files changed, 0 insertions, 0 deletions