8279646: JFR: Remove recursive call in jdk.jfr.internal.Control

Reviewed-by: mgronlun
This commit is contained in:
Erik Gahlin 2022-01-11 02:51:53 +00:00
parent 2f7665b829
commit 2f13872d51

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2016, 2022, 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
@ -75,7 +75,7 @@ public final class Control {
public String getValue() {
if (context == null) {
// VM events requires no access control context
return getValue();
return delegate.getValue();
} else {
return AccessController.doPrivileged(new PrivilegedAction<String>() {
@Override