mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 18:44:38 +02:00
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:
parent
fe145646e7
commit
840867efa6
28 changed files with 108 additions and 130 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue