8330302: strace004 can still fail

Reviewed-by: alanb, shade
This commit is contained in:
David Holmes 2024-09-13 12:10:11 +00:00
parent 8a4ea09fa2
commit bd44cf8ab7
3 changed files with 11 additions and 3 deletions

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2003, 2023, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2003, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -663,6 +663,9 @@ class SleepingThread extends BaseThread {
expectedMethods.add(Thread.class.getName() + ".currentCarrierThread"); expectedMethods.add(Thread.class.getName() + ".currentCarrierThread");
expectedMethods.add(Thread.class.getName() + ".currentThread"); expectedMethods.add(Thread.class.getName() + ".currentThread");
// jdk.internal.event.ThreadSleepEvent not accessible // jdk.internal.event.ThreadSleepEvent not accessible
expectedMethods.add("java.lang.Object.<init>");
expectedMethods.add("jdk.internal.event.Event.<init>");
expectedMethods.add("jdk.internal.event.ThreadSleepEvent.<init>");
expectedMethods.add("jdk.internal.event.ThreadSleepEvent.<clinit>"); expectedMethods.add("jdk.internal.event.ThreadSleepEvent.<clinit>");
expectedMethods.add("jdk.internal.event.ThreadSleepEvent.isEnabled"); expectedMethods.add("jdk.internal.event.ThreadSleepEvent.isEnabled");
expectedMethods.add(SleepingThread.class.getName() + ".run"); expectedMethods.add(SleepingThread.class.getName() + ".run");

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2007, 2023, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2007, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -41,6 +41,9 @@ public class SleepingThread extends RecursiveMonitoringThread {
"java.lang.Thread.beforeSleep", "java.lang.Thread.beforeSleep",
"java.lang.Thread.afterSleep", "java.lang.Thread.afterSleep",
"java.util.concurrent.TimeUnit.toNanos", "java.util.concurrent.TimeUnit.toNanos",
"java.lang.Object.<init>",
"jdk.internal.event.Event.<init>",
"jdk.internal.event.ThreadSleepEvent.<init>",
"jdk.internal.event.ThreadSleepEvent.<clinit>", "jdk.internal.event.ThreadSleepEvent.<clinit>",
"jdk.internal.event.ThreadSleepEvent.isEnabled", "jdk.internal.event.ThreadSleepEvent.isEnabled",
"nsk.monitoring.share.thread.SleepingThread.runInside" "nsk.monitoring.share.thread.SleepingThread.runInside"

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2003, 2023, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2003, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -150,6 +150,8 @@ public class strace001 {
"java.lang.Thread.currentThread", "java.lang.Thread.currentThread",
"java.util.concurrent.TimeUnit.toNanos", "java.util.concurrent.TimeUnit.toNanos",
"jdk.internal.event.ThreadSleepEvent.<clinit>", "jdk.internal.event.ThreadSleepEvent.<clinit>",
"java.lang.Object.<init>",
"jdk.internal.event.Event.<init>",
"jdk.internal.event.ThreadSleepEvent.<init>", "jdk.internal.event.ThreadSleepEvent.<init>",
"jdk.internal.event.ThreadSleepEvent.isEnabled" "jdk.internal.event.ThreadSleepEvent.isEnabled"
}; };