[pypy-svn] r16468 - pypy/dist/pypy/translator/llvm2

ericvrp at codespeak.net ericvrp at codespeak.net
Thu Aug 25 13:08:36 CEST 2005


Author: ericvrp
Date: Thu Aug 25 13:08:35 2005
New Revision: 16468

Modified:
   pypy/dist/pypy/translator/llvm2/varsize.py
Log:
always clear malloc data until we have a 'bugfree' standalone


Modified: pypy/dist/pypy/translator/llvm2/varsize.py
==============================================================================
--- pypy/dist/pypy/translator/llvm2/varsize.py	(original)
+++ pypy/dist/pypy/translator/llvm2/varsize.py	Thu Aug 25 13:08:35 2005
@@ -26,9 +26,10 @@
     codewriter.malloc("%ptr", "sbyte", "%usize", atomic=atomicmalloc)
     codewriter.cast("%result", "sbyte*", "%ptr", ref + "*")
 
-    if ARRAY is STR.chars:
-        #XXX instead of memset we could probably just zero the hash and string terminator
-        codewriter.call('%memset_result', 'sbyte*', '%memset', ['%ptr', '0', '%usize',], ['sbyte*', word, uword], cconv='ccc')
+    #if ARRAY is STR.chars:
+    #    #XXX instead of memset we could probably just zero the hash and string terminator
+    #    codewriter.call('%memset_result', 'sbyte*', '%memset', ['%ptr', '0', '%usize',], ['sbyte*', word, uword], cconv='ccc')
+    codewriter.call('%memset_result', 'sbyte*', '%memset', ['%ptr', '0', '%usize',], ['sbyte*', word, uword], cconv='ccc')
  
     indices_to_arraylength = tuple(indices_to_array) + (("uint", 0),)
     # the following accesses the length field of the array 



More information about the Pypy-commit mailing list