void unlinkNode ( int index , int lastLookup , int lookup ) { // A VoltDB extension to diagnose ArrayOutOfBounds. voltDBhistory [ voltDBhistoryDepth ++ % voltDBhistoryCapacity ] = - index - 1 ; // End of VoltDB extension // unlink the node if ( lastLookup == - 1 ) { hashTable [ index ] = linkTable [ lookup ] ; } else { linkTable [ lastLookup ] = linkTable [ lookup ] ; } // add to reclaimed list linkTable [ lookup ] = reclaimedNodePointer ; reclaimedNodePointer = lookup ; elementCount -- ; }
Unlink a node from a linked list and link into the reclaimed list .