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 jdk.hotspot.agent.jmod - Hotspot Agent Module
JDK 17 jdk.hotspot.agent.jmod is the JMOD file for JDK 17 Hotspot Agent module.
JDK 17 Hotspot Agent module compiled class files are stored in \fyicenter\jdk-17.0.5\jmods\jdk.hotspot.agent.jmod.
JDK 17 Hotspot Agent module compiled class files are also linked and stored in the \fyicenter\jdk-17.0.5\lib\modules JImage file.
JDK 17 Hotspot Agent module source code files are stored in \fyicenter\jdk-17.0.5\lib\src.zip\jdk.hotspot.agent.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ sun/jvm/hotspot/opto/Node.java
/*
* Copyright (c) 2011, 2020, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package sun.jvm.hotspot.opto;
import java.io.*;
import java.lang.reflect.Constructor;
import java.util.*;
import sun.jvm.hotspot.debugger.*;
import sun.jvm.hotspot.runtime.*;
import sun.jvm.hotspot.oops.*;
import sun.jvm.hotspot.types.*;
import sun.jvm.hotspot.utilities.Observable;
import sun.jvm.hotspot.utilities.Observer;
public class Node extends VMObject {
static {
VM.registerVMInitializedObserver(new Observer() {
public void update(Observable o, Object data) {
initialize(VM.getVM().getTypeDataBase());
}
});
}
private static synchronized void initialize(TypeDataBase db) throws WrongTypeException {
Type type = db.lookupType("Node");
outmaxField = new CIntField(type.getCIntegerField("_outmax"), 0);
outcntField = new CIntField(type.getCIntegerField("_outcnt"), 0);
maxField = new CIntField(type.getCIntegerField("_max"), 0);
cntField = new CIntField(type.getCIntegerField("_cnt"), 0);
idxField = new CIntField(type.getCIntegerField("_idx"), 0);
outField = type.getAddressField("_out");
inField = type.getAddressField("_in");
nodeType = db.lookupType("Node");
virtualConstructor = new VirtualBaseConstructor<>(db, nodeType, "sun.jvm.hotspot.opto", Node.class);
}
private static CIntField outmaxField;
private static CIntField outcntField;
private static CIntField maxField;
private static CIntField cntField;
private static CIntField idxField;
private static AddressField outField;
private static AddressField inField;
private static VirtualBaseConstructor<Node> virtualConstructor;
private static Type nodeType;
static HashMap<Address, Node> nodes = new HashMap<>();
static HashMap constructors = new HashMap();
static abstract class Instantiator {
abstract Node create(Address addr);
}
static public Node create(Address addr) {
if (addr == null) return null;
Node result = nodes.get(addr);
if (result == null) {
result = (Node)virtualConstructor.instantiateWrapperFor(addr);
nodes.put(addr, result);
}
return result;
}
public Node(Address addr) {
super(addr);
}
public int outcnt() {
return (int)outcntField.getValue(this.getAddress());
}
public int req() {
return (int)cntField.getValue(this.getAddress());
}
public int len() {
return (int)maxField.getValue(this.getAddress());
}
public int idx() {
return (int)idxField.getValue(this.getAddress());
}
private Node[] _out;
private Node[] _in;
public Node rawOut(int i) {
if (_out == null) {
int addressSize = (int)VM.getVM().getAddressSize();
_out = new Node[outcnt()];
Address ptr = outField.getValue(this.getAddress());
for (int j = 0; j < outcnt(); j++) {
_out[j] = Node.create(ptr.getAddressAt(j * addressSize));
}
}
return _out[i];
}
public Node in(int i) {
if (_in == null) {
int addressSize = (int)VM.getVM().getAddressSize();
_in = new Node[len()];
Address ptr = inField.getValue(this.getAddress());
for (int j = 0; j < len(); j++) {
_in[j] = Node.create(ptr.getAddressAt(j * addressSize));
}
}
return _in[i];
}
public ArrayList<Node> collect(int d, boolean onlyCtrl) {
int depth = Math.abs(d);
ArrayList<Node> nstack = new ArrayList<>();
BitSet set = new BitSet();
nstack.add(this);
set.set(idx());
int begin = 0;
int end = 0;
for (int i = 0; i < depth; i++) {
end = nstack.size();
for(int j = begin; j < end; j++) {
Node tp = (Node)nstack.get(j);
int limit = d > 0 ? tp.len() : tp.outcnt();
for(int k = 0; k < limit; k++) {
Node n = d > 0 ? tp.in(k) : tp.rawOut(k);
// if (not_a_node(n)) continue;
if (n == null) continue;
// do not recurse through top or the root (would reach unrelated stuff)
// if (n.isRoot() || n.isTop()) continue;
// if (onlyCtrl && !n.isCfg()) continue;
if (!set.get(n.idx())) {
nstack.add(n);
set.set(n.idx());
}
}
}
begin = end;
}
return nstack;
}
protected void dumpNodes(Node s, int d, boolean onlyCtrl, PrintStream out) {
if (s == null) return;
ArrayList nstack = s.collect(d, onlyCtrl);
int end = nstack.size();
if (d > 0) {
for(int j = end-1; j >= 0; j--) {
((Node)nstack.get(j)).dump(out);
}
} else {
for(int j = 0; j < end; j++) {
((Node)nstack.get(j)).dump(out);
}
}
}
public void dump(int depth, PrintStream out) {
dumpNodes(this, depth, false, out);
}
public String Name() {
Type t = VM.getVM().getTypeDataBase().findDynamicTypeForAddress(getAddress(), nodeType);
String name = null;
if (t != null) {
name = t.toString();
} else {
Class c = getClass();
if (c == Node.class) {
// couldn't identify class type
return "UnknownNode<" + getAddress().getAddressAt(0) + ">";
}
name = getClass().getName();
if (name.startsWith("sun.jvm.hotspot.opto.")) {
name = name.substring("sun.jvm.hotspot.opto.".length());
}
}
if (name.endsWith("Node")) {
return name.substring(0, name.length() - 4);
}
return name;
}
public void dump(PrintStream out) {
out.print(" ");
out.print(idx());
out.print("\t");
out.print(Name());
out.print("\t=== ");
int i = 0;
for (i = 0; i < req(); i++) {
Node n = in(i);
if (n != null) {
out.print(' ');
out.print(in(i).idx());
} else {
out.print("_");
}
out.print(" ");
}
if (len() != req()) {
int prec = 0;
for (; i < len(); i++) {
Node n = in(i);
if (n != null) {
if (prec++ == 0) {
out.print("| ");
}
out.print(in(i).idx());
}
out.print(" ");
}
}
dumpOut(out);
dumpSpec(out);
out.println();
}
void dumpOut(PrintStream out) {
// Delimit the output edges
out.print(" [[");
// Dump the output edges
for (int i = 0; i < outcnt(); i++) { // For all outputs
Node u = rawOut(i);
if (u == null) {
out.print("_ ");
// } else if (not_a_node(u)) {
// out.print("not_a_node ");
} else {
// out.print("%c%d ", Compile::current()->nodeArena()->contains(u) ? ' ' : 'o', u->_idx);
out.print(' ');
out.print(u.idx());
out.print(' ');
}
}
out.print("]] ");
}
public void dumpSpec(PrintStream out) {
}
}
⏎ sun/jvm/hotspot/opto/Node.java
Or download all of them as a single archive file:
File name: jdk.hotspot.agent-17.0.5-src.zip File size: 1238587 bytes Release date: 2022-09-13 Download
⇒ JDK 17 jdk.httpserver.jmod - HTTP Server Module
2023-10-04, ≈98🔥, 0💬
Popular Posts:
HttpComponents Client Source Code Files are provided in the source package file, httpcomponents-clie...
What is jxl.jar 2.6.12? jxl.jar 2.6.12 is the JAR file for Java Excel API 2.6.12, which is a Java li...
Apache ZooKeeper is an open-source server which enables highly reliable distributed coordination. Ap...
Jettison is a collection of Java APIs (like STaX and DOM) which read and write JSON. This allows nea...
What Is in Xerces-J-bin.2.12.2.zip? Xerces-J-bin.2.12.2.zip file is the distribution package ZIP fil...