Improved OOME detail messages.
Example (from logcat):
Throwing OutOfMemoryError "Failed to allocate a 1036-byte byte[] (143176 total bytes free; largest possible contiguous allocation 976 bytes)"
Change-Id: I4c83cafef775aa0590613f26080981eae5ce7da4
diff --git a/src/thread.h b/src/thread.h
index a100c03..2cb59d5 100644
--- a/src/thread.h
+++ b/src/thread.h
@@ -254,8 +254,8 @@
void ThrowNewExceptionV(const char* exception_class_descriptor, const char* fmt, va_list ap);
// OutOfMemoryError is special, because we need to pre-allocate an instance.
+ // Only the GC should call this.
void ThrowOutOfMemoryError(const char* msg);
- void ThrowOutOfMemoryError(Class* c, size_t byte_count);
Frame FindExceptionHandler(void* throw_pc, void** handler_pc);