You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by sc...@apache.org on 2016/08/02 14:08:47 UTC
svn commit: r1754934 -
/uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/jcas/impl/JCasHashMap.java
Author: schor
Date: Tue Aug 2 14:08:47 2016
New Revision: 1754934
URL: http://svn.apache.org/viewvc?rev=1754934&view=rev
Log:
no Jira - remove extra unused argument from JCasHashMap constructor
Modified:
uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/jcas/impl/JCasHashMap.java
Modified: uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/jcas/impl/JCasHashMap.java
URL: http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/jcas/impl/JCasHashMap.java?rev=1754934&r1=1754933&r2=1754934&view=diff
==============================================================================
--- uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/jcas/impl/JCasHashMap.java (original)
+++ uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/jcas/impl/JCasHashMap.java Tue Aug 2 14:08:47 2016
@@ -111,7 +111,7 @@ public class JCasHashMap {
// set to true to collect statistics for tuning
// you have to also put a call to jcas.showJfsFromCaddrHistogram() at the end of the run
static final boolean TUNE = false;
- static final boolean check = true; // message if concurrency level reduced because initial size was small
+ static final boolean check = false; // message if concurrency level reduced because initial size was small
// private static final boolean MEASURE_CACHE = false /* Misc.getNoValueSystemProperty("uima.measure.jcas.hashmap.cache")*/;
@@ -176,7 +176,7 @@ public class JCasHashMap {
// private final int[] cacheInt = new int[CACHE_SIZE];
// private int cacheNewIndex = 0;
- JCasHashMap(int capacity, boolean doUseCache) {
+ public JCasHashMap(int capacity) {
// reduce concurrency so that capacity / concurrency >= 32
// that is, minimum sub-table capacity is 32 entries
// if capacity/concurrency < 32,
@@ -322,7 +322,7 @@ public class JCasHashMap {
// }
public TOP put(TOP value) {
- final int key = value.getAddress();
+ final int key = value.id();
// updateCache(key, value);
final int hash = hashInt(key);
return getSubMap(hash).put(key, value, hash >>> concurrencyLevelBits);