summaryrefslogtreecommitdiff
path: root/compiler/optimizing/graph_checker.h
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2016-03-21 12:01:50 +0000
committer Vladimir Marko <vmarko@google.com> 2016-03-21 16:50:08 +0000
commitf6a35de9eeefb20f6446f1b4815b4dcb0161d09c (patch)
treecf484acbd6889b92a7fe3e8615611129088c3894 /compiler/optimizing/graph_checker.h
parent459898dc4470559ba1e1d578bc52a914d1f573f5 (diff)
Optimizing: Fix register allocator validation memory usage.
Also attribute ArenaBitVector allocations to appropriate passes. This was used to track down the source of the excessive memory alloactions. Bug: 27690481 Change-Id: Ib895984cb7c04e24cbc7abbd8322079bab8ab100
Diffstat (limited to 'compiler/optimizing/graph_checker.h')
-rw-r--r--compiler/optimizing/graph_checker.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler/optimizing/graph_checker.h b/compiler/optimizing/graph_checker.h
index 52252cd3d4..8da8457859 100644
--- a/compiler/optimizing/graph_checker.h
+++ b/compiler/optimizing/graph_checker.h
@@ -30,7 +30,10 @@ class GraphChecker : public HGraphDelegateVisitor {
: HGraphDelegateVisitor(graph),
errors_(graph->GetArena()->Adapter(kArenaAllocGraphChecker)),
dump_prefix_(dump_prefix),
- seen_ids_(graph->GetArena(), graph->GetCurrentInstructionId(), false) {}
+ seen_ids_(graph->GetArena(),
+ graph->GetCurrentInstructionId(),
+ false,
+ kArenaAllocGraphChecker) {}
// Check the whole graph (in reverse post-order).
void Run() {