Skip to content

Commit 89c5659

Browse files
author
SendaoYan
committed
8366694: Test JdbStopInNotificationThreadTest.java timed out after 60 second
8366850: Test com/sun/jdi/JdbStopInNotificationThreadTest.java failed Reviewed-by: phh Backport-of: ed62bda2e0c51a67baae1fc28e41c9cd878db5f4
1 parent fcece2e commit 89c5659

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/jdk/com/sun/jdi/JdbStopInNotificationThreadTest.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2019, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -113,9 +113,11 @@ public class JdbStopInNotificationThreadTest extends JdbTest {
113113
private static final String DEBUGGEE_CLASS = JdbStopInNotificationThreadTestTarg.class.getName();
114114
private static final String PATTERN1_TEMPLATE = "^Breakpoint hit: \"thread=Notification Thread\", " +
115115
"JdbStopInNotificationThreadTestTarg\\$1\\.handleNotification\\(\\), line=%LINE_NUMBER.*\\R%LINE_NUMBER\\s+System\\.out\\.println\\(\"Memory usage low!!!\"\\);.*";
116+
private static final String[] DEBUGGEE_OPTIONS = {"-Xmx256M"};
116117

117118
private JdbStopInNotificationThreadTest() {
118-
super(DEBUGGEE_CLASS);
119+
super(new LaunchOptions(DEBUGGEE_CLASS)
120+
.addDebuggeeOptions(DEBUGGEE_OPTIONS));
119121
}
120122

121123
public static void main(String argv[]) {

0 commit comments

Comments
 (0)