summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorXingxing Pan <xxingpan@gmail.com>2014-10-16 13:41:58 +0800
committerXingxing Pan <xxingpan@gmail.com>2014-10-16 13:41:58 +0800
commitacbb30867482986e02a7cc53c099b8d56d32acee (patch)
tree349d95679955ff98c2a570cbbe45b3d3466d8040 /runtime
parent8fd9bc91c0511c3d17618b1f33df0ee85ef429ab (diff)
downloadart-acbb30867482986e02a7cc53c099b8d56d32acee.tar.gz
art-acbb30867482986e02a7cc53c099b8d56d32acee.tar.bz2
art-acbb30867482986e02a7cc53c099b8d56d32acee.zip
Fix UnimplementedEntryPoint initialziation.
Change-Id: I16c4a8869a210008eede244fc3e5388d882ccaf5 Signed-off-by: Xingxing Pan <xxingpan@gmail.com>
Diffstat (limited to 'runtime')
-rw-r--r--runtime/thread.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/thread.cc b/runtime/thread.cc
index fd37703949..313771dd12 100644
--- a/runtime/thread.cc
+++ b/runtime/thread.cc
@@ -94,8 +94,8 @@ void InitEntryPoints(InterpreterEntryPoints* ipoints, JniEntryPoints* jpoints,
void Thread::InitTlsEntryPoints() {
// Insert a placeholder so we can easily tell if we call an unimplemented entry point.
uintptr_t* begin = reinterpret_cast<uintptr_t*>(&tlsPtr_.interpreter_entrypoints);
- uintptr_t* end = reinterpret_cast<uintptr_t*>(reinterpret_cast<uint8_t*>(begin) +
- sizeof(tlsPtr_.quick_entrypoints));
+ uintptr_t* end = reinterpret_cast<uintptr_t*>(reinterpret_cast<uint8_t*>(&tlsPtr_.quick_entrypoints) +
+ sizeof(tlsPtr_.quick_entrypoints));
for (uintptr_t* it = begin; it != end; ++it) {
*it = reinterpret_cast<uintptr_t>(UnimplementedEntryPoint);
}