Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (102)
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 (322)
Collections:
Other Resources:
JDK 17 java.base.jmod - Base Module
JDK 17 java.base.jmod is the JMOD file for JDK 17 Base module.
JDK 17 Base module compiled class files are stored in \fyicenter\jdk-17.0.5\jmods\java.base.jmod.
JDK 17 Base module compiled class files are also linked and stored in the \fyicenter\jdk-17.0.5\lib\modules JImage file.
JDK 17 Base module source code files are stored in \fyicenter\jdk-17.0.5\lib\src.zip\java.base.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ java/lang/LiveStackFrameInfo.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;
final class LiveStackFrameInfo extends StackFrameInfo implements LiveStackFrame {
private static Object[] EMPTY_ARRAY = new Object[0];
// These flags must match the values maintained in the VM
private static final int MODE_INTERPRETED = 0x01;
private static final int MODE_COMPILED = 0x02;
LiveStackFrameInfo(StackWalker walker) {
super(walker);
}
// These fields are initialized by the VM if ExtendedOption.LOCALS_AND_OPERANDS is set
private Object[] monitors = EMPTY_ARRAY;
private Object[] locals = EMPTY_ARRAY;
private Object[] operands = EMPTY_ARRAY;
private int mode = 0;
@Override
public Object[] getMonitors() {
return monitors;
}
@Override
public Object[] getLocals() {
return locals;
}
@Override
public Object[] getStack() {
return operands;
}
@Override
public String toString() {
StringBuilder retVal = new StringBuilder(super.toString());
if (mode != 0) {
retVal.append("(");
if ((mode & MODE_INTERPRETED) == MODE_INTERPRETED) {
retVal.append(" interpreted ");
}
if ((mode & MODE_COMPILED) == MODE_COMPILED) {
retVal.append(" compiled ");
}
retVal.append(")");
}
return retVal.toString();
}
/*
* Convert primitive value to {@code PrimitiveSlot} object to represent
* a local variable or an element on the operand stack of primitive type.
*/
static PrimitiveSlot asPrimitive(int value) {
return new PrimitiveSlot32(value);
}
static PrimitiveSlot asPrimitive(long value) {
return new PrimitiveSlot64(value);
}
private static class PrimitiveSlot32 extends PrimitiveSlot {
final int value;
PrimitiveSlot32(int value) {
this.value = value;
}
@Override
public int size() {
return 4;
}
@Override
public int intValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
}
private static class PrimitiveSlot64 extends PrimitiveSlot {
final long value;
PrimitiveSlot64(long value) {
this.value = value;
}
@Override
public int size() {
return 8;
}
@Override
public long longValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
}
}
⏎ java/lang/LiveStackFrameInfo.java
Or download all of them as a single archive file:
File name: java.base-17.0.5-src.zip File size: 8883851 bytes Release date: 2022-09-13 Download
2023-09-26, ≈295🔥, 1💬
Popular Posts:
pache Derby is an open source relational database implemented entirely in Java and available under t...
maven-embedder-3.8.6.jar is the JAR file for Apache Maven 3.8.6 Embedder module. Apache Maven is a s...
JDK 11 jdk.jlink.jmod is the JMOD file for JDK 11 JLink tool, which can be invoked by the "jlink" co...
How to download and install JDK (Java Development Kit) 1.3? If you want to write Java applications, ...
JDK 11 java.smartcardio.jmod is the JMOD file for JDK 11 Smartcardio module. JDK 11 Smart Card IO mo...