Search in sources :

Example 1 with GCStringCacheTableIterator

use of com.ibm.j9ddr.vm29.j9.gc.GCStringCacheTableIterator in project openj9 by eclipse.

the class RootScanner method scanStringTable.

protected void scanStringTable() throws CorruptDataException {
    if (_extensions.collectStringConstants()) {
        setReachability(Reachability.WEAK);
    } else {
        setReachability(Reachability.STRONG);
    }
    GCStringTableIterator stringTableIterator = GCStringTableIterator.from();
    GCStringTableIterator stringTableAddressIterator = GCStringTableIterator.from();
    while (stringTableIterator.hasNext()) {
        doStringTableSlot(stringTableIterator.next(), stringTableAddressIterator.nextAddress());
    }
    GCStringCacheTableIterator cacheIterator = GCStringCacheTableIterator.from();
    GCStringCacheTableIterator cacheAddressIterator = GCStringCacheTableIterator.from();
    while (cacheIterator.hasNext()) {
        doStringCacheTableSlot(cacheIterator.next(), cacheAddressIterator.nextAddress());
    }
}
Also used : GCStringTableIterator(com.ibm.j9ddr.vm29.j9.gc.GCStringTableIterator) GCStringCacheTableIterator(com.ibm.j9ddr.vm29.j9.gc.GCStringCacheTableIterator)

Aggregations

GCStringCacheTableIterator (com.ibm.j9ddr.vm29.j9.gc.GCStringCacheTableIterator)1 GCStringTableIterator (com.ibm.j9ddr.vm29.j9.gc.GCStringTableIterator)1