Skip to content
Prev Previous commit
Next Next commit
Add comment
  • Loading branch information
fparain committed Oct 27, 2025
commit f5f7448e1541ec827c58877289dbc0d9f1347a38
2 changes: 2 additions & 0 deletions test/jdk/valhalla/valuetypes/RecursiveValueClass.java
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,8 @@ private static N build() {
public void largeGraph() {
N node = build();
long start = System.nanoTime();
// With the alternate isSubstitutable() method, type recursion is handled differently
// and the line below won't throw a SOE
assertThrows(StackOverflowError.class, () -> { boolean v = node.l == node.r; });
assertThrows(StackOverflowError.class, () -> { int hc = node.hashCode(); });
System.out.format("testing large graph: %d ms%n", (System.nanoTime() - start) / 1000);
Expand Down