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/class_linker.cc b/src/class_linker.cc
index 53bcf7e..bd23b2d 100644
--- a/src/class_linker.cc
+++ b/src/class_linker.cc
@@ -58,7 +58,7 @@
 void ThrowNoSuchMethodError(const char* kind,
     Class* c, const StringPiece& name, const StringPiece& signature) {
   DexCache* dex_cache = c->GetDexCache();
-  std::stringstream msg;
+  std::ostringstream msg;
   msg << "no " << kind << " method " << name << "." << signature
       << " in class " << c->GetDescriptor()->ToModifiedUtf8()
       << " or its superclasses";
@@ -2310,7 +2310,7 @@
 }
 
 struct LinkFieldsComparator {
-  bool operator()(const Field* field1, const Field* field2){
+  bool operator()(const Field* field1, const Field* field2) {
 
     // First come reference fields, then 64-bit, and finally 32-bit
     const Class* type1 = field1->GetTypeDuringLinking();