summaryrefslogtreecommitdiff
path: root/runtime/art_method.cc
diff options
context:
space:
mode:
author Mathieu Chartier <mathieuc@google.com> 2015-09-15 17:03:55 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2015-09-15 17:03:55 +0000
commit1e9c1ffa2fc148fc8d0ee5eb1222dd894116e68d (patch)
tree0caf77956d845e3f4e94cd994df0bc9626e1aeee /runtime/art_method.cc
parentada5ccd318fb02f9d5c7b20c9d6fed9ffa614961 (diff)
parent1147b9bd68323c753ed1a0b6106b205fd640c820 (diff)
Merge "Use image pointer size for profile info"
Diffstat (limited to 'runtime/art_method.cc')
-rw-r--r--runtime/art_method.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/art_method.cc b/runtime/art_method.cc
index 6044a2a334..92648b9b1b 100644
--- a/runtime/art_method.cc
+++ b/runtime/art_method.cc
@@ -601,12 +601,13 @@ const uint8_t* ArtMethod::GetQuickenedInfo() {
}
ProfilingInfo* ArtMethod::CreateProfilingInfo() {
+ DCHECK(!Runtime::Current()->IsAotCompiler());
ProfilingInfo* info = ProfilingInfo::Create(this);
MemberOffset offset = ArtMethod::EntryPointFromJniOffset(sizeof(void*));
uintptr_t pointer = reinterpret_cast<uintptr_t>(this) + offset.Uint32Value();
if (!reinterpret_cast<Atomic<ProfilingInfo*>*>(pointer)->
CompareExchangeStrongSequentiallyConsistent(nullptr, info)) {
- return GetProfilingInfo();
+ return GetProfilingInfo(sizeof(void*));
} else {
return info;
}