From: Wolfgang M. M. <wol...@us...> - 2004-08-15 20:53:37
|
Update of /cvsroot/exist/eXist-1.0/src/org/exist/util/hashtable In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22844/src/org/exist/util/hashtable Modified Files: SequencedLongHashMap.java Log Message: Removed exception inserted for testing. Index: SequencedLongHashMap.java =================================================================== RCS file: /cvsroot/exist/eXist-1.0/src/org/exist/util/hashtable/SequencedLongHashMap.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** SequencedLongHashMap.java 15 Aug 2004 20:29:10 -0000 1.2 --- SequencedLongHashMap.java 15 Aug 2004 20:53:28 -0000 1.3 *************** *** 78,98 **** duplicate = (Entry)old; } catch (HashtableOverflowException e) { ! throw new RuntimeException(e); ! // long[] copyKeys = keys; ! // Object[] copyValues = values; ! // // enlarge the table with a prime value ! // tabSize = (int) nextPrime(tabSize + tabSize / 2); ! // keys = new long[tabSize]; ! // values = new Object[tabSize]; ! // items = 0; ! // ! // try { ! // for (int k = 0; k < copyValues.length; k++) { ! // if (copyValues[k] != null && copyValues[k] != REMOVED) ! // insert(copyKeys[k], copyValues[k]); ! // } ! // duplicate = (Entry)insert(key, entry); ! // } catch (HashtableOverflowException e1) { ! // } } if(duplicate != null) --- 78,97 ---- duplicate = (Entry)old; } catch (HashtableOverflowException e) { ! long[] copyKeys = keys; ! Object[] copyValues = values; ! // enlarge the table with a prime value ! tabSize = (int) nextPrime(tabSize + tabSize / 2); ! keys = new long[tabSize]; ! values = new Object[tabSize]; ! items = 0; ! ! try { ! for (int k = 0; k < copyValues.length; k++) { ! if (copyValues[k] != null && copyValues[k] != REMOVED) ! insert(copyKeys[k], copyValues[k]); ! } ! duplicate = (Entry)insert(key, entry); ! } catch (HashtableOverflowException e1) { ! } } if(duplicate != null) |