Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
8279007: jstatd fails to start because SecurityManager is disabled
Reviewed-by: alanb, sspitsyn, mullan
  • Loading branch information
Kevin Walls committed Dec 22, 2021
1 parent 97c5cd7 commit 734143918de540382b5a0754bb7be1500b6f3596
Showing 2 changed files with 2 additions and 2 deletions.
@@ -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, \
))
@@ -253,7 +253,6 @@ private void cleanUpThread(ProcessThread thread) throws Throwable {
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(),

1 comment on commit 7341439

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on 7341439 Dec 22, 2021

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.