diff --git a/src/hotspot/share/opto/node.hpp b/src/hotspot/share/opto/node.hpp index d4a1d6a61e297..47d8711eafd82 100644 --- a/src/hotspot/share/opto/node.hpp +++ b/src/hotspot/share/opto/node.hpp @@ -2115,15 +2115,15 @@ inline int Op_DivModIL(BasicType bt, bool is_unsigned) { // a customized BFS. class BFSActions : public StackObj { public: - // Should a node's inputs further be visit in the BFS traversal? By default, we visit all data inputs. Override this - // method to provide a costum filter. + // Should a node's inputs further be visited in the BFS traversal? By default, we visit all data inputs. Override this + // method to provide a custom filter. virtual bool should_visit(Node* node) const { // By default, visit all inputs. return true; }; // Is the visited node a target node that we are looking for in the BFS traversal? We do not visit its inputs further - // but the BFS will continue to visited all unvisited nodes in the queue. + // but the BFS will continue to visit all unvisited nodes in the queue. virtual bool is_target_node(Node* node) const = 0; // Defines an action that should be taken when we visit a target node in the BFS traversal. diff --git a/src/hotspot/share/opto/predicates.cpp b/src/hotspot/share/opto/predicates.cpp index e11664bd35911..9e742f41612f9 100644 --- a/src/hotspot/share/opto/predicates.cpp +++ b/src/hotspot/share/opto/predicates.cpp @@ -240,11 +240,11 @@ class OpaqueLoopNodesVerifier : public BFSActions { void target_node_action(Node* target_node) override { if (target_node->is_OpaqueLoopInit()) { - assert(!_found_init, "can only found one OpaqueLoopInitNode"); + assert(!_found_init, "should only find one OpaqueLoopInitNode"); _found_init = true; } else { assert(target_node->is_OpaqueLoopStride(), "unexpected Opaque1 node"); - assert(!_found_stride, "can only found one OpaqueLoopStrideNode"); + assert(!_found_stride, "should only find one OpaqueLoopStrideNode"); _found_stride = true; } }