Skip to content

Commit

Permalink
8291781: assert(!is_visited) failed: visit only once with -XX:+SuperW…
Browse files Browse the repository at this point in the history
…ordRTDepCheck

Reviewed-by: thartmann
  • Loading branch information
Fei Gao authored and Pengfei Li committed Oct 28, 2022
1 parent d5d3424 commit 4b89fce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/hotspot/share/opto/superword.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1113,10 +1113,11 @@ void SuperWord::dependence_graph() {
int cmp = p1.cmp(p2);
if (SuperWordRTDepCheck &&
p1.base() != p2.base() && p1.valid() && p2.valid()) {
// Create a runtime check to disambiguate
// Trace disjoint pointers
OrderedPair pp(p1.base(), p2.base());
_disjoint_ptrs.append_if_missing(pp);
} else if (!SWPointer::not_equal(cmp)) {
}
if (!SWPointer::not_equal(cmp)) {
// Possibly same address
_dg.make_edge(s1, s2);
sink_dependent = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public class TestVectorizeTypeConversion {
private static float[] floatb = new float[SIZE];

public static void main(String[] args) {
TestFramework.run();
TestFramework.runWithFlags("-XX:+SuperWordRTDepCheck");
}

@Test
Expand Down

1 comment on commit 4b89fce

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.