Merge "Fix exception regression." into dalvik-dev
diff --git a/src/thread.cc b/src/thread.cc
index 82ee631..2fd3a5a 100644
--- a/src/thread.cc
+++ b/src/thread.cc
@@ -1209,8 +1209,8 @@
   ScopedJniThreadState ts(env);
 
   // Build internal stack trace
-  BuildInternalStackTraceVisitor build_trace_visitor(depth);
-  if (!build_trace_visitor.Init(skip_depth, ts)) {
+  BuildInternalStackTraceVisitor build_trace_visitor(skip_depth);
+  if (!build_trace_visitor.Init(depth, ts)) {
     return NULL;  // Allocation failed
   }
   WalkStack(&build_trace_visitor);