Display additional information on stack overflow.
This required passing an additional argument into dvmHandleStackOverflow,
which is called directly from mterp. Fortunately the method being
called is sitting in a register for both ARM and x86, so this is a
fairly simple change.
For internal bug 2110533.
diff --git a/vm/interp/Stack.h b/vm/interp/Stack.h
index 22f066f..208fe90 100644
--- a/vm/interp/Stack.h
+++ b/vm/interp/Stack.h
@@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
/*
* Stack frames, and uses thereof.
*/
@@ -275,7 +276,7 @@
/*
* Common handling for stack overflow.
*/
-void dvmHandleStackOverflow(Thread* self);
+void dvmHandleStackOverflow(Thread* self, const Method* method);
void dvmCleanupStackOverflow(Thread* self);
/* debugging; dvmDumpThread() is probably a better starting point */