8279007: jstatd fails to start because SecurityManager is disabled

Reviewed-by: alanb, sspitsyn, mullan
This commit is contained in:
Kevin Walls 2021-12-22 11:36:53 +00:00
parent 97c5cd7fac
commit 734143918d
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
#
# Copyright (c) 2011, 2020, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2011, 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
@ -27,4 +27,5 @@ include LauncherCommon.gmk
$(eval $(call SetupBuildLauncher, jstatd, \
MAIN_CLASS := sun.tools.jstatd.Jstatd, \
JAVA_ARGS := -Djava.security.manager=allow, \
))

View File

@ -253,7 +253,6 @@ public final class JstatdTest {
private String[] getJstatdCmd() throws Exception {
JDKToolLauncher launcher = JDKToolLauncher.createUsingTestJDK("jstatd");
launcher.addVMArg("-XX:+UsePerfData");
launcher.addVMArg("-Djava.security.manager=allow");
String testSrc = System.getProperty("test.src");
File policy = new File(testSrc, "all.policy");
assertTrue(policy.exists() && policy.isFile(),