Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
JDK 11 java.base.jmod - Base Module
JDK 11 java.base.jmod is the JMOD file for JDK 11 Base module.
JDK 11 Base module compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\java.base.jmod.
JDK 11 Base module compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.
JDK 11 Base module source code files are stored in \fyicenter\jdk-11.0.1\lib\src.zip\java.base.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ java/lang/LiveStackFrame.java
/* * Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package java.lang; import java.lang.StackWalker.StackFrame; import java.util.EnumSet; import java.util.Set; import static java.lang.StackWalker.ExtendedOption.LOCALS_AND_OPERANDS; /** * <em>UNSUPPORTED</em> This interface is intended to be package-private * or move to an internal package.<p> * * {@code LiveStackFrame} represents a frame storing data and partial results. * Each frame has its own array of local variables (JVMS section 2.6.1), * its own operand stack (JVMS section 2.6.2) for a method invocation. * * @jvms 2.6 Frames */ /* package-private */ interface LiveStackFrame extends StackFrame { /** * Return the monitors held by this stack frame. This method returns * an empty array if no monitor is held by this stack frame. * * @return the monitors held by this stack frames */ public Object[] getMonitors(); /** * Gets the local variable array of this stack frame. * * <p>A single local variable can hold a value of type boolean, byte, char, * short, int, float, reference or returnAddress. A pair of local variables * can hold a value of type long or double (JVMS section 2.6.1). Primitive * locals are represented in the returned array as {@code PrimitiveSlot}s, * with longs and doubles occupying a pair of consecutive * {@code PrimitiveSlot}s. * * <p>The current VM implementation does not provide specific type * information for primitive locals. This method simply returns the raw * contents of the VM's primitive locals on a best-effort basis, without * indicating a specific type. * * <p>The returned array may contain null entries for local variables that * are not live. * * @implNote * <p> The specific subclass of {@code PrimitiveSlot} will reflect the * underlying architecture, and will be either {@code PrimitiveSlot32} or * {@code PrimitiveSlot64}. * * <p>How a long or double value is stored in the pair of * {@code PrimitiveSlot}s can vary based on the underlying architecture and * VM implementation. On 32-bit architectures, long/double values are split * between the two {@code PrimitiveSlot32}s. * On 64-bit architectures, the entire value may be stored in one of the * {@code PrimitiveSlot64}s, with the other {@code PrimitiveSlot64} being * unused. * * <p>The contents of the unused, high-order portion of a * {@code PrimitiveSlot64} (when storing a primitive other than a long or * double) is unspecified. In particular, the unused bits are not * necessarily zeroed out. * * @return the local variable array of this stack frame. */ public Object[] getLocals(); /** * Gets the operand stack of this stack frame. * * <p> * The 0-th element of the returned array represents the top of the operand stack. * This method returns an empty array if the operand stack is empty. * * <p>Each entry on the operand stack can hold a value of any Java Virtual * Machine Type. * For a value of primitive type, the element in the returned array is * a {@link PrimitiveSlot} object; otherwise, the element is the {@code Object} * on the operand stack. * * @return the operand stack of this stack frame. */ public Object[] getStack(); /** * <em>UNSUPPORTED</em> This interface is intended to be package-private * or moved to an internal package.<p> * * Represents a local variable or an entry on the operand stack whose value is * of primitive type. */ public abstract class PrimitiveSlot { /** * Returns the size, in bytes, of the slot. */ public abstract int size(); /** * Returns the int value if this primitive value is of size 4 * @return the int value if this primitive value is of size 4 * * @throws UnsupportedOperationException if this primitive value is not * of size 4. */ public int intValue() { throw new UnsupportedOperationException("this " + size() + "-byte primitive"); } /** * Returns the long value if this primitive value is of size 8 * @return the long value if this primitive value is of size 8 * * @throws UnsupportedOperationException if this primitive value is not * of size 8. */ public long longValue() { throw new UnsupportedOperationException("this " + size() + "-byte primitive"); } } /** * Gets {@code StackWalker} that can get locals and operands. * * @throws SecurityException if the security manager is present and * denies access to {@code RuntimePermission("liveStackFrames")} */ public static StackWalker getStackWalker() { return getStackWalker(EnumSet.noneOf(StackWalker.Option.class)); } /** * Gets a {@code StackWalker} instance with the given options specifying * the stack frame information it can access, and which will traverse at most * the given {@code maxDepth} number of stack frames. If no option is * specified, this {@code StackWalker} obtains the method name and * the class name with all * {@linkplain StackWalker.Option#SHOW_HIDDEN_FRAMES hidden frames} skipped. * The returned {@code StackWalker} can get locals and operands. * * @param options stack walk {@link StackWalker.Option options} * * @throws SecurityException if the security manager is present and * it denies access to {@code RuntimePermission("liveStackFrames")}; or * or if the given {@code options} contains * {@link StackWalker.Option#RETAIN_CLASS_REFERENCE Option.RETAIN_CLASS_REFERENCE} * and it denies access to {@code RuntimePermission("getStackWalkerWithClassReference")}. */ public static StackWalker getStackWalker(Set<StackWalker.Option> options) { SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(new RuntimePermission("liveStackFrames")); } return StackWalker.newInstance(options, LOCALS_AND_OPERANDS); } }
⏎ java/lang/LiveStackFrame.java
Or download all of them as a single archive file:
File name: java.base-11.0.1-src.zip File size: 8740354 bytes Release date: 2018-11-04 Download
2020-05-29, 242658👍, 0💬
Popular Posts:
Provides support for the runtime platform, core utility methods and the extension registry. JAR File...
xml-commons External Source Code Files are provided in the source package file, xml-commons-external...
JAX-WS is an API for building web services and clients. It is the next generation Web Services API r...
JDK 17 java.management.jmod is the JMOD file for JDK 17 Management module. JDK 17 Management module ...
commons-net-1.4.1.jar is the JAR file for Apache Commons Net 1.4.1, which implements the client side...