RFR: 8282384: [LOOM] Need test for ThreadReference.interrupt() on a vthread
Leonid Mesnik
lmesnik at openjdk.org
Thu Apr 27 19:52:56 UTC 2023
On Thu, 27 Apr 2023 17:42:41 GMT, Chris Plummer <cjplummer at openjdk.org> wrote:
> Convert this ThreadReference.interrupt() test to support virtual threads. I believe this is the only test for ThreadReference.interrupt() that we have.
>
> Tested by running with and without -Dmain.wrapper=Virtual on all supported platforms.
Changes requested by lmesnik (Reviewer).
test/hotspot/jtreg/vmTestbase/nsk/jdi/ThreadReference/interrupt/interrupt001a.java line 209:
> 207: }
> 208:
> 209: class interrupt001aThread implements Runnable {
Does it make sense to rename class to something like Interrupt001aTask? Just to let know that it is not a thread. Also, there is ./nsk/share/jdi/NamedTask.java for task with names in JDI tests.
-------------
PR Review: https://git.openjdk.org/jdk/pull/13696#pullrequestreview-1404771083
PR Review Comment: https://git.openjdk.org/jdk/pull/13696#discussion_r1179608600
More information about the serviceability-dev
mailing list