mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8268829: Provide an optimized way to walk the stack with Class object only
8210375: StackWalker::getCallerClass throws UnsupportedOperationException Reviewed-by: coleenp, dfuchs, bchristi
This commit is contained in:
parent
716201c77d
commit
111ecdbaf5
34 changed files with 982 additions and 622 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1999, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1999, 2023, 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
|
||||
|
@ -72,7 +72,7 @@ final class JceSecurityManager {
|
|||
INSTANCE = dummySecurityManager;
|
||||
|
||||
PrivilegedAction<StackWalker> paWalker =
|
||||
() -> StackWalker.getInstance(Option.RETAIN_CLASS_REFERENCE);
|
||||
() -> StackWalker.getInstance(Set.of(Option.DROP_METHOD_INFO, Option.RETAIN_CLASS_REFERENCE));
|
||||
@SuppressWarnings("removal")
|
||||
StackWalker dummyWalker = AccessController.doPrivileged(paWalker);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue