Skip to content

Commit

Permalink
8274930: sun/tools/jps/TestJps.java can fail with long VM arguments s…
Browse files Browse the repository at this point in the history
…tring

Reviewed-by: sspitsyn, lmesnik
  • Loading branch information
Alex Menkov committed Nov 2, 2021
1 parent 6a04899 commit bb92fb0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/jdk/sun/tools/jps/JpsHelper.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2014, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2014, 2021, 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 @@ -106,6 +106,7 @@ public static String[] asCmdArray(List<JpsArg> jpsArgs) {
private static String[] testVmArgs = {
"-XX:+UsePerfData", "-Xmx512m", "-Xlog:gc",
"-Dmultiline.prop=value1\nvalue2\r\nvalue3",
"-XX:PerfMaxStringConstLength=8K", // avoid VM flags truncations for "jps -v"
null /* lazily initialized -XX:Flags */};
private static File manifestFile = null;

Expand Down

1 comment on commit bb92fb0

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.