Update of /cvsroot/monetdb/pathfinder/runtime
In directory sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv31090/runtime

Modified Files:
      Tag: M5XQ
        pf_support.mx 
Log Message:
propagated changes of Monday Jan 04 2010
from the XQFT branch to the M5XQ branch

  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2010/01/04 - sjoerd: runtime/pf_support.mx,1.338.2.2
  propagated changes of Saturday Dec 26 2009 - Monday Jan 04 2010
  from the development trunk to the XQFT branch
  
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    2009/12/26 - stmane: runtime/pf_support.mx,1.340
    propagated changes of Wednesday Dec 23 2009 - Saturday Dec 26 2009
    from the Nov2009 branch to the development trunk
  
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      2009/12/23 - sjoerd: runtime/pf_support.mx,1.336.4.2
      Move destroy functions to appropriate places.
      Coverity found the leak of s.
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    2010/01/04 - sjoerd: runtime/pf_support.mx,1.341
    Changed the implementation of the offset heap for type string.
  
    Before, the offset heap would contain values of type var_t (typically
    equal in size to oid), so if there are lots of entries but not that
    many different strings, a lot of space was wasted, since only the
    lower few bytes of the values in the offset heap would be used, the
    rest being zero.
  
    In this version, the offset heap has a dynamic width.  It starts off
    as a single byte value, and when the offsets become too large to fit
    in a single byte, the heap is upgraded to a short, then an int, and
    finally (if the system uses 64 bit oids) to lng.
  
    There are tags to mark this change:
    before_variable_string_offset and after_variable_string_offset.
  
    Only MonetDB* and pathfinder needed to be changes, so the tags are
    only added there.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Index: pf_support.mx
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/runtime/pf_support.mx,v
retrieving revision 1.333.2.5
retrieving revision 1.333.2.6
diff -u -d -r1.333.2.5 -r1.333.2.6
--- pf_support.mx       9 Dec 2009 14:25:59 -0000       1.333.2.5
+++ pf_support.mx       4 Jan 2010 15:21:52 -0000       1.333.2.6
@@ -8266,7 +8266,7 @@
                                nbats++;
                        }
                        BUNfndVOID(r, bn[i], &o);
-                       ATOMreplace(TYPE_str, bn[i].b->theap, Tloc(bn[i].b, r), 
s);
+                       Treplacevalue(bn[i].b, Tloc(bn[i].b, r), s);
                        i++;
                        s = e ? e + seplen : NULL;
                }
@@ -8855,11 +8855,11 @@
                              NULL, /* xrpc_seqnr */
                              NULL, /* xrpc_timeout */
                              NULL);/* xrpc_start */
-                         stream_destroy(s);
+                        BBPreclaim(k);
                     }
-                    BBPreclaim(k);
+                    BBPreclaim(i);
                 }
-                BBPreclaim(i);
+                stream_destroy(s);
             } 
             fclose(fp);
         } else {


------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins

Reply via email to