mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 01:54:47 +02:00
8265914: Duplicated NotANode and not_a_node
Reviewed-by: thartmann
This commit is contained in:
parent
9481fad42f
commit
fbfd4ea3ce
5 changed files with 22 additions and 36 deletions
|
@ -287,13 +287,6 @@ void Compile::gvn_replace_by(Node* n, Node* nn) {
|
|||
}
|
||||
|
||||
|
||||
static inline bool not_a_node(const Node* n) {
|
||||
if (n == NULL) return true;
|
||||
if (((intptr_t)n & 1) != 0) return true; // uninitialized, etc.
|
||||
if (*(address*)n == badAddress) return true; // kill by Node::destruct
|
||||
return false;
|
||||
}
|
||||
|
||||
// Identify all nodes that are reachable from below, useful.
|
||||
// Use breadth-first pass that records state in a Unique_Node_List,
|
||||
// recursive traversal is slower.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue