summaryrefslogtreecommitdiffstats
path: root/vm/hprof/Hprof.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'vm/hprof/Hprof.cpp')
-rw-r--r--vm/hprof/Hprof.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/vm/hprof/Hprof.cpp b/vm/hprof/Hprof.cpp
index ff8e87287..4a6b1a69a 100644
--- a/vm/hprof/Hprof.cpp
+++ b/vm/hprof/Hprof.cpp
@@ -214,15 +214,11 @@ static void hprofRootVisitor(void *addr, u4 threadId, RootType type, void *arg)
/*
* Visitor invoked on every heap object.
*/
-static void hprofBitmapCallback(void *ptr, void *arg)
+static void hprofBitmapCallback(Object *obj, void *arg)
{
- Object *obj;
- hprof_context_t *ctx;
-
- assert(ptr != NULL);
+ assert(obj != NULL);
assert(arg != NULL);
- obj = (Object *)ptr;
- ctx = (hprof_context_t *)arg;
+ hprof_context_t *ctx = (hprof_context_t *)arg;
hprofDumpHeapObject(ctx, obj);
}