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/memory/MemRegion.java
/*
* Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package sun.jvm.hotspot.memory;
import java.util.*;
import sun.jvm.hotspot.debugger.*;
import sun.jvm.hotspot.runtime.*;
import sun.jvm.hotspot.types.*;
import sun.jvm.hotspot.utilities.*;
import sun.jvm.hotspot.utilities.Observable;
import sun.jvm.hotspot.utilities.Observer;
/** A very simple data structure representing a contigous region of
address space. */
public class MemRegion implements Cloneable {
private Address start;
private long byteSize;
private static AddressField startField;
private static CIntegerField wordSizeField;
static {
VM.registerVMInitializedObserver(new Observer() {
public void update(Observable o, Object data) {
initialize(VM.getVM().getTypeDataBase());
}
});
}
private static synchronized void initialize(TypeDataBase db) {
Type type = db.lookupType("MemRegion");
startField = type.getAddressField("_start");
wordSizeField = type.getCIntegerField("_word_size");
}
public MemRegion() {
}
/** This constructor takes a "MemRegion*" in the target process */
public MemRegion(Address memRegionAddr) {
this(startField.getValue(memRegionAddr),
wordSizeField.getValue(memRegionAddr));
}
public MemRegion(Address start, long wordSize) {
setStart(start);
setWordSize(wordSize);
}
public MemRegion(Address start, Address limit) {
setStart(start);
byteSize = limit.minus(start);
}
public Object clone() {
return new MemRegion(start, byteSize);
}
public MemRegion copy() {
return (MemRegion) clone();
}
public MemRegion intersection(MemRegion mr2) {
MemRegion res = new MemRegion();
if (AddressOps.gt(mr2.start(), start())) {
res.setStart(mr2.start());
} else {
res.setStart(start());
}
Address resEnd;
Address end = end();
Address mr2End = mr2.end();
if (AddressOps.lt(end, mr2End)) {
resEnd = end;
} else {
resEnd = mr2End;
}
if (AddressOps.lt(resEnd, res.start())) {
res.setStart(null);
res.setWordSize(0);
} else {
res.setEnd(resEnd);
}
return res;
}
public MemRegion union(MemRegion mr2) {
MemRegion res = new MemRegion();
if (AddressOps.lt(mr2.start(), start())) {
res.setStart(mr2.start());
} else {
res.setStart(start());
}
Address resEnd;
Address end = end();
Address mr2End = mr2.end();
if (AddressOps.gt(end, mr2End)) {
resEnd = end;
} else {
resEnd = mr2End;
}
res.setEnd(resEnd);
return res;
}
public Address start() {
return start;
}
public OopHandle startAsOopHandle() {
return start().addOffsetToAsOopHandle(0);
}
public Address end() {
return start.addOffsetTo(byteSize);
}
public OopHandle endAsOopHandle() {
return end().addOffsetToAsOopHandle(0);
}
public void setStart(Address start) {
this.start = start;
}
public void setEnd(Address end) {
byteSize = end.minus(start);
}
public void setWordSize(long wordSize) {
byteSize = VM.getVM().getAddressSize() * wordSize;
}
public boolean contains(MemRegion mr2) {
return AddressOps.lte(start, mr2.start) && AddressOps.gte(end(), mr2.end());
}
public boolean contains(Address addr) {
return AddressOps.gte(addr, start()) && AddressOps.lt(addr, end());
}
public long byteSize() {
return byteSize;
}
public long wordSize() {
return byteSize / VM.getVM().getAddressSize();
}
}
⏎ sun/jvm/hotspot/memory/MemRegion.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, ≈97🔥, 0💬
Popular Posts:
Java Architecture for XML Binding (JAXB) is a Java API that allows Java developers to map Java class...
What Is commons-logging-1.2.jar? commons-logging-1.2.jar is the JAR file for Apache Commons Logging ...
The JDT project provides the tool plug-ins that implement a Java IDE supporting the development of a...
Guava is a suite of core and expanded libraries that include utility classes, google's collections, ...
What Is activation.jar? I heard it's related to JAF (JavaBeans Activation Framework) 1.1? The if you...