Increase size of LinearAlloc region, and warn about massive Mirandizing.
diff --git a/vm/LinearAlloc.c b/vm/LinearAlloc.c
index 77802ee..73d9235 100644
--- a/vm/LinearAlloc.c
+++ b/vm/LinearAlloc.c
@@ -68,7 +68,7 @@
#define BLOCK_ALIGN 8
/* default length of memory segment (worst case is probably "dexopt") */
-#define DEFAULT_MAX_LENGTH (4*1024*1024)
+#define DEFAULT_MAX_LENGTH (5*1024*1024)
/* leave enough space for a length word */
#define HEADER_EXTRA 4
@@ -313,7 +313,8 @@
* works if the users of these functions actually free everything
* they allocate.
*/
- LOGE("LinearAlloc exceeded capacity, last=%d\n", (int) size);
+ LOGE("LinearAlloc exceeded capacity (%d), last=%d\n",
+ pHdr->mapLength, (int) size);
dvmAbort();
}