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 11 jdk.hotspot.agent.jmod - Hotspot Agent Module
JDK 11 jdk.hotspot.agent.jmod is the JMOD file for JDK 11 Hotspot Agent module.
JDK 11 Hotspot Agent module compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\jdk.hotspot.agent.jmod.
JDK 11 Hotspot Agent module compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.
JDK 11 Hotspot Agent module source code files are stored in \fyicenter\jdk-11.0.1\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/oops/ObjectHistogramElement.java
/*
* Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package sun.jvm.hotspot.oops;
import java.io.*;
import java.util.*;
import sun.jvm.hotspot.memory.*;
import sun.jvm.hotspot.runtime.*;
public class ObjectHistogramElement {
private Klass klass;
private long count; // Number of instances of klass
private long size; // Total size of all these instances
public ObjectHistogramElement(Klass k) {
klass = k;
count = 0;
size = 0;
}
public void updateWith(Oop obj) {
count = count + 1;
size = size + obj.getObjectSize();
}
public int compare(ObjectHistogramElement other) {
return (int) (other.size - size);
}
/** Klass for this ObjectHistogramElement */
public Klass getKlass() {
return klass;
}
/** Number of instances of klass */
public long getCount() {
return count;
}
/** Total size of all these instances */
public long getSize() {
return size;
}
private String getInternalName(Klass k) {
ByteArrayOutputStream bos = new ByteArrayOutputStream();
getKlass().printValueOn(new PrintStream(bos));
// '*' is used to denote VM internal klasses.
return "* " + bos.toString();
}
/** Human readable description **/
public String getDescription() {
Klass k = getKlass();
if (k instanceof InstanceKlass) {
return k.getName().asString().replace('/', '.');
} else if (k instanceof ArrayKlass) {
ArrayKlass ak = (ArrayKlass) k;
if (k instanceof TypeArrayKlass) {
TypeArrayKlass tak = (TypeArrayKlass) ak;
return tak.getElementTypeName() + "[]";
} else if (k instanceof ObjArrayKlass) {
ObjArrayKlass oak = (ObjArrayKlass) ak;
Klass bottom = oak.getBottomKlass();
int dim = (int) oak.getDimension();
StringBuffer buf = new StringBuffer();
if (bottom instanceof TypeArrayKlass) {
buf.append(((TypeArrayKlass) bottom).getElementTypeName());
} else if (bottom instanceof InstanceKlass) {
buf.append(bottom.getName().asString().replace('/', '.'));
} else {
throw new RuntimeException("should not reach here");
}
for (int i=0; i < dim; i++) {
buf.append("[]");
}
return buf.toString();
}
}
return getInternalName(k);
}
public static void titleOn(PrintStream tty) {
tty.println("Object Histogram:");
tty.println();
tty.println("num " + "\t" + " #instances" + "\t" + "#bytes" + "\t" + "Class description");
tty.println("--------------------------------------------------------------------------");
}
public void printOn(PrintStream tty) {
tty.print(count + "\t" + size + "\t");
tty.print(getDescription());
tty.println();
}
}
⏎ sun/jvm/hotspot/oops/ObjectHistogramElement.java
Or download all of them as a single archive file:
File name: jdk.hotspot.agent-11.0.1-src.zip File size: 1243786 bytes Release date: 2018-11-04 Download
⇒ JDK 11 jdk.httpserver.jmod - HTTP Server Module
2020-02-29, ≈304🔥, 0💬
Popular Posts:
How to download and install javamail-1_2.zip? The JavaMail API is a set of abstract APIs that model ...
JDK 11 jdk.internal.JVM Stat.jmod is the JMOD file for JDK 11 Internal Jvmstat module. JDK 11 Intern...
How to download and install ojdbc6.jar for Oracle 11g R2? ojdbc6.jar for Oracle 11g R2 is a Java 6, ...
JDK 11 jdk.jdi.jmod is the JMOD file for JDK 11 JDI (Java Debug Interface) tool. JDK 11 JDI tool com...
What Is poi-scratchpad-5.2.3.jar ?poi-scratchpad-5.2.3.jar is one of the JAR files for Apache POI 5....