Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,17 @@
* @test
* @summary Checks if -XX:+LimitPrimitiveArrayContentInHeapDump works.
* @requires os.maxMemory > 4G
* @requires !jdk.static
* @library /test/lib
* @run driver PartialArrayContentTest
* @run driver PartialArrayContentTest jcmd
*/

/*
* @test
* @summary Checks if -XX:+LimitPrimitiveArrayContentInHeapDump works.
* @requires os.maxMemory > 4G
* @library /test/lib
* @run driver PartialArrayContentTest oom
*/
class ArrayAllocApp extends LingeredApp {
public static int arraySize = 54321;
Expand Down Expand Up @@ -91,8 +100,11 @@ public class PartialArrayContentTest {
private static int nonCharLikeLimit = 50;

public static void main(String[] args) throws Exception {
checkPartialContentWithJcmd();
checkPartialContentWithOOM();
if (args[0].equals("jcmd")) {
checkPartialContentWithJcmd();
} else {
checkPartialContentWithOOM();
}
}

public static void checkPartialContentWithJcmd() throws Exception {
Expand Down