APIdia Launch Partner
Top Description Fields Constructors Methods
sun.jvm.hotspot.utilities

public Class BitMap

extends Object
Class Inheritance
Imports
sun.jvm.hotspot.debugger.*

Manages a bitmap of the specified bit size

Field Summary

Modifier and TypeField and Description
private static final int
private static final int
private int[]
private int

Constructor Summary

AccessConstructor and Description
public
BitMap(int sizeInBits)

Method Summary

Modifier and TypeMethod and Description
public boolean
at(int offset)

public void
atPut(int offset, boolean value)

private int
bitInWord(int offset)

public void
public int
getNextOneOffset(int l_offset, int r_offset)

private int
indexFor(int offset)

public boolean
isSame(BitMap other)

Both bitmaps must be the same size.

public void
public void
public void
set_size(int value)

public boolean
setDifference(BitMap other)

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.

public void
setFrom(BitMap other)

Sets this bitmap to the contents of the argument.

public void
setIntersection(BitMap other)

Sets this bitmap to the logical intersection of it and the argument.

public boolean
setUnion(BitMap other)

Sets this bitmap to the logical union of it and the argument.

public int
size()

private int
private int
wordFor(int offset)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

bitsPerWordback to summary
private static final int bitsPerWord
bytesPerWordback to summary
private static final int bytesPerWord
databack to summary
private int[] data
sizeback to summary
private int size

Constructor Detail

BitMapback to summary
public BitMap(int sizeInBits)

Method Detail

atback to summary
public boolean at(int offset)
atPutback to summary
public void atPut(int offset, boolean value)
bitInWordback to summary
private int bitInWord(int offset)
clearback to summary
public void clear()
getNextOneOffsetback to summary
public int getNextOneOffset(int l_offset, int r_offset)
indexForback to summary
private int indexFor(int offset)
isSameback to summary
public boolean isSame(BitMap other)

Both bitmaps must be the same size.

iterateback to summary
public void iterate(BitMapClosure blk)
set_mapback to summary
public void set_map(Address addr)
set_sizeback to summary
public void set_size(int value)
setDifferenceback to summary
public boolean setDifference(BitMap other)

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.

setFromback to summary
public void setFrom(BitMap other)

Sets this bitmap to the contents of the argument. Both bitmaps must be the same size.

setIntersectionback to summary
public void setIntersection(BitMap other)

Sets this bitmap to the logical intersection of it and the argument. Both bitmaps must be the same size.

setUnionback to summary
public boolean setUnion(BitMap other)

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.

sizeback to summary
public int size()
sizeInWordsback to summary
private int sizeInWords()
wordForback to summary
private int wordFor(int offset)