We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fcece2e commit e41b96bCopy full SHA for e41b96b
test/jdk/com/sun/jdi/TwoThreadsTest.java
@@ -1,5 +1,5 @@
1
/*
2
- * Copyright (c) 2005, 2023, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2005, 2025, Oracle and/or its affiliates. All rights reserved.
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
*
5
* This code is free software; you can redistribute it and/or modify it
@@ -55,6 +55,13 @@ public static void main(String[] args) {
55
56
t1.start();
57
t2.start();
58
+ // The threads might be virtual and daemon, so wait until completion.
59
+ try {
60
+ t1.join();
61
+ t2.join();
62
+ } catch (InterruptedException e) {
63
+ throw new RuntimeException(e);
64
+ }
65
}
66
67
0 commit comments