Skip to content

Commit bd44cf8

Browse files
author
David Holmes
committedSep 13, 2024
8330302: strace004 can still fail
Reviewed-by: alanb, shade
1 parent 8a4ea09 commit bd44cf8

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed
 

‎test/hotspot/jtreg/vmTestbase/nsk/monitoring/share/ThreadController.java

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2003, 2024, 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
@@ -663,6 +663,9 @@ public SleepingThread(ThreadController controller, String name, Log log, Threads
663663
expectedMethods.add(Thread.class.getName() + ".currentCarrierThread");
664664
expectedMethods.add(Thread.class.getName() + ".currentThread");
665665
// jdk.internal.event.ThreadSleepEvent not accessible
666+
expectedMethods.add("java.lang.Object.<init>");
667+
expectedMethods.add("jdk.internal.event.Event.<init>");
668+
expectedMethods.add("jdk.internal.event.ThreadSleepEvent.<init>");
666669
expectedMethods.add("jdk.internal.event.ThreadSleepEvent.<clinit>");
667670
expectedMethods.add("jdk.internal.event.ThreadSleepEvent.isEnabled");
668671
expectedMethods.add(SleepingThread.class.getName() + ".run");

‎test/hotspot/jtreg/vmTestbase/nsk/monitoring/share/thread/SleepingThread.java

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2007, 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2007, 2024, 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
@@ -41,6 +41,9 @@ public class SleepingThread extends RecursiveMonitoringThread {
4141
"java.lang.Thread.beforeSleep",
4242
"java.lang.Thread.afterSleep",
4343
"java.util.concurrent.TimeUnit.toNanos",
44+
"java.lang.Object.<init>",
45+
"jdk.internal.event.Event.<init>",
46+
"jdk.internal.event.ThreadSleepEvent.<init>",
4447
"jdk.internal.event.ThreadSleepEvent.<clinit>",
4548
"jdk.internal.event.ThreadSleepEvent.isEnabled",
4649
"nsk.monitoring.share.thread.SleepingThread.runInside"

‎test/hotspot/jtreg/vmTestbase/nsk/monitoring/stress/thread/strace001.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2003, 2024, 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
@@ -150,6 +150,8 @@ private static boolean fillTrace() {
150150
"java.lang.Thread.currentThread",
151151
"java.util.concurrent.TimeUnit.toNanos",
152152
"jdk.internal.event.ThreadSleepEvent.<clinit>",
153+
"java.lang.Object.<init>",
154+
"jdk.internal.event.Event.<init>",
153155
"jdk.internal.event.ThreadSleepEvent.<init>",
154156
"jdk.internal.event.ThreadSleepEvent.isEnabled"
155157
};

0 commit comments

Comments
 (0)
Please sign in to comment.