Skip to content

Commit 687ea73

Browse files
author
SendaoYan
committedFeb 11, 2025
8347171: (dc) java/nio/channels/DatagramChannel/InterruptibleOrNot.java fails with virtual thread factory
Backport-of: 1ef77cdd51b91f6d6d3367444a37a3f0f2e4bc99
1 parent 72f23f0 commit 687ea73

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎test/jdk/java/nio/channels/DatagramChannel/InterruptibleOrNot.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2019, 2024, 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
@@ -47,6 +47,7 @@
4747
import org.junit.jupiter.api.BeforeAll;
4848
import org.junit.jupiter.api.function.Executable;
4949
import static org.junit.jupiter.api.Assertions.*;
50+
import static org.junit.jupiter.api.Assumptions.*;
5051

5152
public class InterruptibleOrNot {
5253
// DatagramChannel implementation class
@@ -98,6 +99,7 @@ public void testInterruptDuringInterruptibleReceive() throws Exception {
9899
*/
99100
@Test
100101
public void testInterruptBeforeUninterruptibleReceive() throws Exception {
102+
assumeFalse(Thread.currentThread().isVirtual());
101103
try (DatagramChannel dc = boundDatagramChannel(false)) {
102104
ByteBuffer buf = ByteBuffer.allocate(100);
103105
onReceive(() -> {

3 commit comments

Comments
 (3)

sendaoYan commented on Feb 11, 2025

@sendaoYan
Member

/backport jdk21u-dev

openjdk[bot] commented on Feb 11, 2025

@openjdk[bot]

@sendaoYan the backport was successfully created on the branch backport-sendaoYan-687ea73b-master in my personal fork of openjdk/jdk21u-dev. To create a pull request with this backport targeting openjdk/jdk21u-dev:master, just click the following link:

➡️ Create pull request

The title of the pull request is automatically filled in correctly and below you find a suggestion for the pull request body:

Hi all,

This pull request contains a backport of commit 687ea73b from the openjdk/jdk24u repository.

The commit being backported was authored by SendaoYan on 11 Feb 2025 and had no reviewers.

Thanks!

If you need to update the source branch of the pull then run the following commands in a local clone of your personal fork of openjdk/jdk21u-dev:

$ git fetch https://github.com/openjdk-bots/jdk21u-dev.git backport-sendaoYan-687ea73b-master:backport-sendaoYan-687ea73b-master
$ git checkout backport-sendaoYan-687ea73b-master
# make changes
$ git add paths/to/changed/files
$ git commit --message 'Describe additional changes made'
$ git push https://github.com/openjdk-bots/jdk21u-dev.git backport-sendaoYan-687ea73b-master

openjdk-notifier[bot] commented on Feb 11, 2025

@openjdk-notifier[bot]
Please sign in to comment.