OSDN Git Service

Resolve the tracked locations in profile saver
authorCalin Juravle <calin@google.com>
Sat, 6 May 2017 00:27:23 +0000 (17:27 -0700)
committerCalin Juravle <calin@google.com>
Tue, 9 May 2017 00:15:35 +0000 (17:15 -0700)
commit5df637a64847f35e3ff2728c842887ab20b3fd6b
tree0a54f35579baa4b86958a26770d60650cba3f62c
parent49b0cdcc365cc76938fe7c7e34d3213fbbe8b319
Resolve the tracked locations in profile saver

The profile saver takes the dex locations it has to track as they are.
On the buildbot the locations are symlinked, but the dex file may be
compiled with an absolute path. This may cause a mismatch and cause the
dex file to not be profiled (test 595-profile-saving will fail).

Note that this is a valid use case in production as well. It may happen
for secondary dex files which can be loaded via symlinks.

Test: test/run-test --output-path /tmp/link --always-clean --host --prebuild --interpreter --no-relocate --runtime-option -Xcheck:jni --no-image --64 595-profile-saving
       test/run-test  --output-path /tmp/link --always-clean --host
--no-prebuild --jit --no-relocate --runtime-option -Xcheck:jni
--runtime-option -verbose:profiler --64  595-profile-saving

Bug: 36605597

(cherry picked from commit 8b5d9b614ad9f13e2cb62d4956252677cd71add1)

Change-Id: I43866c6cf7ce6f33ac4386bb4fe07b88bb35e793
runtime/jit/profile_saver.cc
runtime/jit/profile_saver.h