Bring our native stack usage down.
I'd have preferred to have a 512-byte limit, but there are some monsters
in the verifier; 2000-line functions and the like. I'm also not policing
tests (except for one silly one). They can use all the stack they like.
This fixes the IntMath test (the stack overflow test was failing because
we were using more than 4KiB to throw!).
Change-Id: I7e53e2fde2b39fde1910f8ee5b1712e8a66069c7
diff --git a/src/check_jni.cc b/src/check_jni.cc
index fa91100..a1a8a18 100644
--- a/src/check_jni.cc
+++ b/src/check_jni.cc
@@ -35,7 +35,7 @@
Thread* self = Thread::Current();
const Method* current_method = self->GetCurrentMethod();
- std::stringstream os;
+ std::ostringstream os;
os << "Aborting because JNI app bug detected (see above for details)";
if (jni_function_name != NULL) {