src/java.base/share/classes/java/lang/LiveStackFrame.java
changeset 53563 a4b7ea85d668
parent 47216 71c04702a3d5
child 58054 ee230ad8cfef
equal deleted inserted replaced
53559:1ae0b76bb5df 53563:a4b7ea85d668
     1 /*
     1 /*
     2  * Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   164      * The returned {@code StackWalker} can get locals and operands.
   164      * The returned {@code StackWalker} can get locals and operands.
   165      *
   165      *
   166      * @param options stack walk {@link StackWalker.Option options}
   166      * @param options stack walk {@link StackWalker.Option options}
   167      *
   167      *
   168      * @throws SecurityException if the security manager is present and
   168      * @throws SecurityException if the security manager is present and
   169      * it denies access to {@code RuntimePermission("liveStackFrames")}; or
   169      * it denies access to {@code RuntimePermission("liveStackFrames")};
   170      * or if the given {@code options} contains
   170      * or if the given {@code options} contains
   171      * {@link StackWalker.Option#RETAIN_CLASS_REFERENCE Option.RETAIN_CLASS_REFERENCE}
   171      * {@link StackWalker.Option#RETAIN_CLASS_REFERENCE Option.RETAIN_CLASS_REFERENCE}
   172      * and it denies access to {@code RuntimePermission("getStackWalkerWithClassReference")}.
   172      * and it denies access to {@code RuntimePermission("getStackWalkerWithClassReference")}.
   173      */
   173      */
   174     public static StackWalker getStackWalker(Set<StackWalker.Option> options) {
   174     public static StackWalker getStackWalker(Set<StackWalker.Option> options) {