Revision: 17111
          http://sourceforge.net/p/gate/code/17111
Author:   valyt
Date:     2013-11-20 12:35:50 +0000 (Wed, 20 Nov 2013)
Log Message:
-----------
Slightly more proactive memory clearing.

Modified Paths:
--------------
    gate/trunk/plugins/JAPE_Plus/src/gate/jape/plus/SPTBase.java
    gate/trunk/plugins/JAPE_Plus/src/gate/jape/plus/Transducer.java
    gate/trunk/src/main/gate/jape/BasicPatternElement.java

Modified: gate/trunk/plugins/JAPE_Plus/src/gate/jape/plus/SPTBase.java
===================================================================
--- gate/trunk/plugins/JAPE_Plus/src/gate/jape/plus/SPTBase.java        
2013-11-20 12:07:45 UTC (rev 17110)
+++ gate/trunk/plugins/JAPE_Plus/src/gate/jape/plus/SPTBase.java        
2013-11-20 12:35:50 UTC (rev 17111)
@@ -654,7 +654,6 @@
     } 
   }
   
-
   protected static int binarySearchFromTo(int[] array, int from, int to, 
IntComparator comp) {
     final int key = 0;
     while (from <= to) {
@@ -1161,6 +1160,7 @@
     }// while(currentAnnotation < annotation.length)
     // execution completed -> clean up the internal data structures.
     fireProcessFinished();
+    inputAS = null;
     annotation = null;
     annotationFollowing = null;
     annotationNextOffset = null;
@@ -1170,7 +1170,6 @@
     acceptingInstances = null;
     activeInstances = null;
     ontology = null;
-    
 //    System.out.println("Predicate hit rate:" + percentFormat.format(
 //            ((double)predicateHits / (predicateHits + predicateMisses))));
   }

Modified: gate/trunk/plugins/JAPE_Plus/src/gate/jape/plus/Transducer.java
===================================================================
--- gate/trunk/plugins/JAPE_Plus/src/gate/jape/plus/Transducer.java     
2013-11-20 12:07:45 UTC (rev 17110)
+++ gate/trunk/plugins/JAPE_Plus/src/gate/jape/plus/Transducer.java     
2013-11-20 12:35:50 UTC (rev 17111)
@@ -798,6 +798,7 @@
         changedTypes.clear();
       }
     } finally {
+      sortedAnnotations.clear();
       inputAs.removeAnnotationSetListener(inputASListener);
       currentSptIndex = -1;
       fireProcessFinished();

Modified: gate/trunk/src/main/gate/jape/BasicPatternElement.java
===================================================================
--- gate/trunk/src/main/gate/jape/BasicPatternElement.java      2013-11-20 
12:07:45 UTC (rev 17110)
+++ gate/trunk/src/main/gate/jape/BasicPatternElement.java      2013-11-20 
12:35:50 UTC (rev 17111)
@@ -52,9 +52,6 @@
     */
   //private MutableInteger nextAvailable = new MutableInteger();
 
-  /** The set of annotations we have matched. */
-  private AnnotationSet matchedAnnots;
-
   private final boolean negationCompatMode;
   
   /** Construction. */
@@ -62,8 +59,6 @@
     constraintsMap = new HashMap<Object, Constraint>();
     constraints1 = new ArrayList<Constraint>();
     lastFailurePoint = -1;
-    //nextAvailable = new MutableInteger();
-    matchedAnnots = new AnnotationSetImpl((Document) null);
     negationCompatMode = spt.isNegationCompatMode();
   } // construction
 

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to