Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions test/jdk/java/nio/MappedByteBuffer/PmemTest.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2019, 2023, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2019, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -77,25 +77,24 @@
* make test TEST=jdk/java/nio/MappedByteBuffer/PmemTest.java
*/

/* @test
/* @test id=default_architecture_test_case
* @summary Testing NVRAM mapped byte buffer support
* @run main/manual PmemTest
* @requires (os.family == "linux")
* @requires (os.arch == "x86_64")
* @requires ((os.arch == "x86_64")|(os.arch == "amd64"))
*/

/* @test
/* @test id=other_architectures_test_case
* @summary Testing NVRAM mapped byte buffer support
* @run main/manual PmemTest
* @requires (os.family == "linux")
* @requires ((os.arch == "amd64")|(os.arch == "aarch64")|(os.arch == "ppc64le"))
* @requires ((os.arch == "aarch64")|(os.arch == "ppc64le"))
* @ignore The test described here is currently disabled on systems that are not
* x64-based and lack an external NVRAM memory device. In order to re-enable the
* test, you will need to mount the NVRAM device, which will typically appear as
* /dev/pmem0, to the directory /mnt/pmem. Once that is done, you can follow the
* instructions above to create a test directory and remove the ignore tag.
*/

import java.io.File;
import java.nio.MappedByteBuffer;
import java.nio.channels.FileChannel;
Expand Down Expand Up @@ -173,4 +172,4 @@ public static void dumpBufferPoolBeans()
"\n}");
}
}
}
}