8247218: Add default constructor to VectorSet to use Thread::current()->resource_area() as arena by default

Add a default construction to VectorSet and clean up uses of the old constructor.

Reviewed-by: kvn, thartmann
This commit is contained in:
Christian Hagedorn 2020-06-29 17:14:19 +02:00
parent fe145646e7
commit 840867efa6
28 changed files with 108 additions and 130 deletions

View file

@ -1396,15 +1396,14 @@ void PhaseCFG::global_code_motion() {
}
// Set the basic block for Nodes pinned into blocks
Arena* arena = Thread::current()->resource_area();
VectorSet visited(arena);
VectorSet visited;
schedule_pinned_nodes(visited);
// Find the earliest Block any instruction can be placed in. Some
// instructions are pinned into Blocks. Unpinned instructions can
// appear in last block in which all their inputs occur.
visited.clear();
Node_Stack stack(arena, (C->live_nodes() >> 2) + 16); // pre-grow
Node_Stack stack((C->live_nodes() >> 2) + 16); // pre-grow
if (!schedule_early(visited, stack)) {
// Bailout without retry
C->record_method_not_compilable("early schedule failed");