Skip to content

8351851: Update PmemTest to run on AMD64 #24416

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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
@@ -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;
@@ -173,4 +172,4 @@ public static void dumpBufferPoolBeans()
"\n}");
}
}
}
}