diff options
Diffstat (limited to 'vm/alloc/Verify.c')
-rw-r--r-- | vm/alloc/Verify.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/vm/alloc/Verify.c b/vm/alloc/Verify.c index a48ff2982..5ce692cb1 100644 --- a/vm/alloc/Verify.c +++ b/vm/alloc/Verify.c @@ -42,7 +42,8 @@ static void dumpReferencesCallback(void *ptr, void *arg) } } -static void dumpReferencesRootVisitor(void *ptr, void *arg) +static void dumpReferencesRootVisitor(void *ptr, u4 threadId, + RootType type, void *arg) { Object *obj = *(Object **)ptr; Object *lookingFor = *(Object **)arg; @@ -120,9 +121,18 @@ void dvmVerifyBitmap(const HeapBitmap *bitmap) } /* + * Helper function to call verifyReference from the root verifier. + */ +static void verifyRootReference(void *addr, u4 threadId, + RootType type, void *arg) +{ + verifyReference(addr, arg); +} + +/* * Verifies references in the roots. */ void dvmVerifyRoots(void) { - dvmVisitRoots(verifyReference, NULL); + dvmVisitRoots(verifyRootReference, NULL); } |