summaryrefslogtreecommitdiffstats
path: root/vm/Thread.cpp
diff options
context:
space:
mode:
authorbuzbee <buzbee@google.com>2011-04-22 10:27:14 -0700
committerbuzbee <buzbee@google.com>2011-04-22 14:18:00 -0700
commit30bc0d46ae730d78c42c39cfa56a59ba3025380b (patch)
tree497bb35e8045c9c0d92c90f7dadb594e0879c0e6 /vm/Thread.cpp
parentfad819858f84f27b4461b70a82ae11d9088bbdcb (diff)
downloadandroid_dalvik-30bc0d46ae730d78c42c39cfa56a59ba3025380b.tar.gz
android_dalvik-30bc0d46ae730d78c42c39cfa56a59ba3025380b.tar.bz2
android_dalvik-30bc0d46ae730d78c42c39cfa56a59ba3025380b.zip
Consolidate curFrame fields in thread storage
We ended up with two locations in the Thread structure for saved Dalvik frame pointer. This change consolidates them. Change-Id: I78f288e4e57e232f29663be930101e775bfe370f
Diffstat (limited to 'vm/Thread.cpp')
-rw-r--r--vm/Thread.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/vm/Thread.cpp b/vm/Thread.cpp
index 9f8896b4d..4d18e1456 100644
--- a/vm/Thread.cpp
+++ b/vm/Thread.cpp
@@ -1157,7 +1157,7 @@ static bool createFakeEntryFrame(Thread* thread)
* Null out the "String[] args" argument.
*/
assert(gDvm.methDalvikSystemNativeStart_main->registersSize == 1);
- u4* framePtr = (u4*) thread->curFrame;
+ u4* framePtr = (u4*) thread->interpSave.curFrame;
framePtr[0] = 0;
return true;
@@ -2007,14 +2007,14 @@ void dvmDetachCurrentThread()
* zero, while a JNI-attached thread will have the synthetic "stack
* starter" native method at the top.
*/
- int curDepth = dvmComputeExactFrameDepth(self->curFrame);
+ int curDepth = dvmComputeExactFrameDepth(self->interpSave.curFrame);
if (curDepth != 0) {
bool topIsNative = false;
if (curDepth == 1) {
/* not expecting a lingering break frame; just look at curFrame */
- assert(!dvmIsBreakFrame((u4*)self->curFrame));
- StackSaveArea* ssa = SAVEAREA_FROM_FP(self->curFrame);
+ assert(!dvmIsBreakFrame((u4*)self->interpSave.curFrame));
+ StackSaveArea* ssa = SAVEAREA_FROM_FP(self->interpSave.curFrame);
if (dvmIsNativeMethod(ssa->method))
topIsNative = true;
}