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/gc/z/ZExternalBitMap.java
/*
* Copyright (c) 2019, 2021, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package sun.jvm.hotspot.gc.z;
import java.util.HashMap;
import sun.jvm.hotspot.runtime.VM;
import sun.jvm.hotspot.utilities.BitMap;
import sun.jvm.hotspot.utilities.BitMapInterface;
/** Discontiguous bitmap for ZGC. */
public class ZExternalBitMap implements BitMapInterface {
private ZPageTable pageTable;
private final long oopSize;
private HashMap<ZPage, BitMap> pageToBitMap = new HashMap<ZPage, BitMap>();
public ZExternalBitMap(ZCollectedHeap collectedHeap) {
pageTable = collectedHeap.heap().pageTable();
oopSize = VM.getVM().getOopSize();
}
private ZPage getPage(long zOffset) {
if (zOffset > ZGlobals.ZAddressOffsetMask()) {
throw new RuntimeException("Not a Z offset: " + zOffset);
}
ZPage page = pageTable.get(ZUtils.longToAddress(zOffset));
if (page == null) {
throw new RuntimeException("Address not in pageTable: " + zOffset);
}
return page;
}
private BitMap getOrAddBitMap(ZPage page) {
BitMap bitMap = pageToBitMap.get(page);
if (bitMap == null) {
long size = page.size();
long maxNumObjects = size >>> page.object_alignment_shift();
if (maxNumObjects > Integer.MAX_VALUE) {
throw new RuntimeException("int overflow");
}
int intMaxNumObjects = (int)maxNumObjects;
bitMap = new BitMap(intMaxNumObjects);
pageToBitMap.put(page, bitMap);
}
return bitMap;
}
private int pageLocalBitMapIndex(ZPage page, long zOffset) {
long pageLocalZOffset = zOffset - page.start();
return (int)(pageLocalZOffset >>> page.object_alignment_shift());
}
private long convertToZOffset(long offset) {
long addr = oopSize * offset;
return addr & ZGlobals.ZAddressOffsetMask();
}
@Override
public boolean at(long offset) {
long zOffset = convertToZOffset(offset);
ZPage page = getPage(zOffset);
BitMap bitMap = getOrAddBitMap(page);
int index = pageLocalBitMapIndex(page, zOffset);
return bitMap.at(index);
}
@Override
public void atPut(long offset, boolean value) {
long zOffset = convertToZOffset(offset);
ZPage page = getPage(zOffset);
BitMap bitMap = getOrAddBitMap(page);
int index = pageLocalBitMapIndex(page, zOffset);
bitMap.atPut(index, value);
}
@Override
public void clear() {
for (BitMap bitMap : pageToBitMap.values()) {
bitMap.clear();
}
}
}
⏎ sun/jvm/hotspot/gc/z/ZExternalBitMap.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, ≈265🔥, 0💬
Popular Posts:
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 Commons Codec library provides implementations of common encoders and decoders such as Base64...
Java-WebSocket Source Code Files are provided in the source package file, java-websocket-1.5.4-src .z...
JRE 5 sunjce_provider.jar is the JAR file for JRE 5 Sun JCE Provider, which provides implementations...
JDK 17 java.base.jmod is the JMOD file for JDK 17 Base module. JDK 17 Base module compiled class fil...