OSDN Git Service

Instead of aborting, just ignore tracked allocation calls.
authorCarl Shapiro <cshapiro@google.com>
Tue, 18 May 2010 21:16:26 +0000 (14:16 -0700)
committerCarl Shapiro <cshapiro@google.com>
Tue, 18 May 2010 21:16:26 +0000 (14:16 -0700)
This fixes a crash in the 070-nio-buffer dalvik test.

Change-Id: If58895498d573408ed69b6b580c16b9e75e9c291

vm/alloc/Copying.c

index 9c6a79b..846ba8a 100644 (file)
@@ -776,13 +776,13 @@ size_t dvmHeapSourceGetNumHeaps(void)
 
 bool dvmTrackExternalAllocation(size_t n)
 {
-    assert(!"implemented");
-    return false;
+    /* do nothing */
+    return true;
 }
 
 void dvmTrackExternalFree(size_t n)
 {
-    assert(!"implemented");
+    /* do nothing */
 }
 
 size_t dvmGetExternalBytesAllocated(void)