private void _handleSpillOverflow(int bindex, com.fasterxml.jackson.core.sym.BytesToNameCanonicalizer.Bucket newBucket) { if (_overflows == null) { _overflows = new Sharpen.BitSet(); _overflows.set(bindex); } else { if (_overflows.get(bindex)) { // Has happened once already, so not a coincident... if (_failOnDoS) { reportTooManyCollisions(MAX_COLL_CHAIN_LENGTH); } // but even if we don't fail, we will stop intern()ing _intern = false; } else { _overflows.set(bindex); } } // regardless, if we get this far, clear up the bucket, adjust size appropriately. _collList[bindex] = null; _count -= (newBucket.length); // we could calculate longest; but for now just mark as invalid _longestCollisionList = -1; }
private void _handleSpillOverflow(int bindex, com.fasterxml.jackson.core.sym.CharsToNameCanonicalizer.Bucket newBucket) { if (_overflows == null) { _overflows = new Sharpen.BitSet(); _overflows.set(bindex); } else { if (_overflows.get(bindex)) { // Has happened once already, so not a coincident... if (com.fasterxml.jackson.core.JsonFactory.Feature.FAIL_ON_SYMBOL_HASH_OVERFLOW.enabledIn (_flags)) { reportTooManyCollisions(MAX_COLL_CHAIN_LENGTH); } // but even if we don't fail, we will stop canonicalizing: _canonicalize = false; } else { _overflows.set(bindex); } } // regardless, if we get this far, clear up the bucket, adjust size appropriately. _symbols[bindex + bindex] = newBucket.symbol; _buckets[bindex] = null; // newBucket contains new symbol; but we wil _size -= (newBucket.length); // we could calculate longest; but for now just mark as invalid _longestCollisionList = -1; }