mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-11 19:08:23 +00:00
8279646: JFR: Remove recursive call in jdk.jfr.internal.Control
Reviewed-by: mgronlun
This commit is contained in:
parent
2f7665b829
commit
2f13872d51
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user