Skip to content
Permalink
Browse files
8244182: Use root node as default for find_node when called from debu…
…gger

Improve find_node for simpler debugging.

Reviewed-by: roland, thartmann
  • Loading branch information
chhagedorn committed May 4, 2020
1 parent bbcb3b6 commit 09912cc50918a10b66b0195dccef50485c7ef17f
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/hotspot/share/opto/node.cpp
@@ -1594,6 +1594,11 @@ Node* find_node(Node* n, int idx) {
return n->find(idx);
}

// call this from debugger with root node as default:
Node* find_node(int idx) {
return Compile::current()->root()->find(idx);
}

//------------------------------find-------------------------------------------
Node* Node::find(int idx) const {
ResourceArea *area = Thread::current()->resource_area();

0 comments on commit 09912cc

Please sign in to comment.