Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
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 (309)
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/utilities/BitMap.java
/* * Copyright (c) 2001, 2007, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * */ package sun.jvm.hotspot.utilities; import sun.jvm.hotspot.debugger.*; /** Manages a bitmap of the specified bit size */ public class BitMap { public BitMap(int sizeInBits) { this.size = sizeInBits; int nofWords = sizeInWords(); data = new int[nofWords]; } public int size() { return size; } // Accessors public boolean at(int offset) { if (Assert.ASSERTS_ENABLED) { Assert.that(offset>=0 && offset < size(), "BitMap index out of bounds"); } return Bits.isSetNthBit(wordFor(offset), offset % bitsPerWord); } public void atPut(int offset, boolean value) { int index = indexFor(offset); int pos = offset % bitsPerWord; if (value) { data[index] = Bits.setNthBit(data[index], pos); } else { data[index] = Bits.clearNthBit(data[index], pos); } } public void set_size(int value) { size = value; } public void set_map(Address addr) { for (int i=0; i<sizeInWords(); i++) { data[i] = (int) addr.getCIntegerAt(0, bytesPerWord, true); addr = addr.addOffsetTo(bytesPerWord); } } public void clear() { for (int i = 0; i < sizeInWords(); i++) { data[i] = Bits.NoBits; } } public void iterate(BitMapClosure blk) { for (int index = 0; index < sizeInWords(); index++) { int rest = data[index]; for (int offset = index * bitsPerWord; rest != Bits.NoBits; offset++) { if (rest % 2 == 1) { if (offset < size()) { blk.doBit(offset); } else { return; // Passed end of map } } rest = rest >>> 1; } } } /** Sets this bitmap to the logical union of it and the argument. Both bitmaps must be the same size. Returns true if a change was caused in this bitmap. */ public boolean setUnion(BitMap other) { if (Assert.ASSERTS_ENABLED) { Assert.that(size() == other.size(), "must have same size"); } boolean changed = false; for (int index = 0; index < sizeInWords(); index++) { int temp = data[index] | other.data[index]; changed = changed || (temp != data[index]); data[index] = temp; } return changed; } /** Sets this bitmap to the logical intersection of it and the argument. Both bitmaps must be the same size. */ public void setIntersection(BitMap other) { if (Assert.ASSERTS_ENABLED) { Assert.that(size() == other.size(), "must have same size"); } for (int index = 0; index < sizeInWords(); index++) { data[index] = data[index] & (other.data[index]); } } /** Sets this bitmap to the contents of the argument. Both bitmaps must be the same size. */ public void setFrom(BitMap other) { if (Assert.ASSERTS_ENABLED) { Assert.that(size() == other.size(), "must have same size"); } for (int index = 0; index < sizeInWords(); index++) { data[index] = other.data[index]; } } /** Sets this bitmap to the logical difference between it and the argument; that is, any bits that are set in the argument are cleared in this bitmap. Both bitmaps must be the same size. Returns true if a change was caused in this bitmap. */ public boolean setDifference(BitMap other) { if (Assert.ASSERTS_ENABLED) { Assert.that(size() == other.size(), "must have same size"); } boolean changed = false; for (int index = 0; index < sizeInWords(); index++) { int temp = data[index] & ~(other.data[index]); changed = changed || (temp != data[index]); data[index] = temp; } return changed; } /** Both bitmaps must be the same size. */ public boolean isSame(BitMap other) { if (Assert.ASSERTS_ENABLED) { Assert.that(size() == other.size(), "must have same size"); } for (int index = 0; index < sizeInWords(); index++) { if (data[index] != (other.data[index])) return false; } return true; } public int getNextOneOffset(int l_offset, int r_offset) { if (l_offset == r_offset) { return l_offset; } int index = indexFor(l_offset); int r_index = indexFor(r_offset); int res_offset = l_offset; int pos = bitInWord(res_offset); int res = data[index] >> pos; if (res != 0) { // find the position of the 1-bit for (; (res & 1) == 0; res_offset++) { res = res >> 1; } return res_offset; } // skip over all word length 0-bit runs for (index++; index < r_index; index++) { res = data[index]; if (res != 0) { // found a 1, return the offset for (res_offset = index * bitsPerWord; (res & 1) == 0; res_offset++) { res = res >> 1; } return res_offset; } } return r_offset; } //---------------------------------------------------------------------- // Internals only below this point // private int size; // in bits private int[] data; private static final int bitsPerWord = 32; private static final int bytesPerWord = 4; private int sizeInWords() { return (size() + bitsPerWord - 1) / bitsPerWord; } private int indexFor(int offset) { return offset / bitsPerWord; } private int wordFor(int offset) { return data[offset / bitsPerWord]; } private int bitInWord(int offset) { return offset & (bitsPerWord - 1); } }
⏎ sun/jvm/hotspot/utilities/BitMap.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, 131540👍, 0💬
Popular Posts:
What Is poi-contrib-3.5.jar? poi-contrib-3.5.jar is one of the JAR files for Apache POI 3.5, which p...
JDK 7 tools.jar is the JAR file for JDK 7 tools. It contains Java classes to support different JDK t...
How to download and install Apache XMLBeans Source Package? The source package contains Java source ...
Oracle Business Intelligence (BI) Beans enables developers to productively build business intelligen...
JDK 11 jdk.crypto.ec.jmod is the JMOD file for JDK 11 Crypto EC module. JDK 11 Crypto EC module comp...