Skip to content

Commit ed62bda

Browse files
author
SendaoYan
committed
8366694: Test JdbStopInNotificationThreadTest.java timed out after 60 second
Reviewed-by: cjplummer, ayang, lmesnik
1 parent 02dd211 commit ed62bda

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 = {"-Xmx64M"};
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)