[pypy-svn] r48208 - pypy/dist/pypy/translator/llvm/module

rxe at codespeak.net rxe at codespeak.net
Tue Oct 30 18:57:12 CET 2007


Author: rxe
Date: Tue Oct 30 18:57:12 2007
New Revision: 48208

Modified:
   pypy/dist/pypy/translator/llvm/module/boehm.h
Log:
comment this out for now - not sure if it is even possible anymore.  no point enlarging our ll files and increasing test times for it

Modified: pypy/dist/pypy/translator/llvm/module/boehm.h
==============================================================================
--- pypy/dist/pypy/translator/llvm/module/boehm.h	(original)
+++ pypy/dist/pypy/translator/llvm/module/boehm.h	Tue Oct 30 18:57:12 2007
@@ -45,27 +45,27 @@
 // fails badly (segfaults) when a reference to the data is kept
 // around and used (much) later.
 
-#define ringbufsize         1024
-#define ringbufentry_maxsize  16
+/* #define ringbufsize         1024 */
+/* #define ringbufentry_maxsize  16 */
 
-static  char    ringbufdata[ringbufsize + ringbufentry_maxsize];
-static  long    ringbufindex = 0;
+/* static  char    ringbufdata[ringbufsize + ringbufentry_maxsize]; */
+/* static  long    ringbufindex = 0; */
 
-char *pypy_malloc_ringbuffer(long size) {
-    if (size <= ringbufentry_maxsize) { //test expected to be optimized away during compile time
-        ringbufindex = (ringbufindex + ringbufentry_maxsize) & (ringbufsize - 1);
-        return &ringbufdata[ringbufindex];
-    } else {
-        return GC_MALLOC(size);
-    }
-}
+/* char *pypy_malloc_ringbuffer(long size) { */
+/*     if (size <= ringbufentry_maxsize) { //test expected to be optimized away during compile time */
+/*         ringbufindex = (ringbufindex + ringbufentry_maxsize) & (ringbufsize - 1); */
+/*         return &ringbufdata[ringbufindex]; */
+/*     } else { */
+/*         return GC_MALLOC(size); */
+/*     } */
+/* } */
 
-char *pypy_malloc_atomic_ringbuffer(long size) {
-    if (size <= ringbufentry_maxsize) { //test expected to be optimized away during compile time
-        ringbufindex = (ringbufindex + ringbufentry_maxsize) & (ringbufsize - 1);
-        return &ringbufdata[ringbufindex];
-    } else {
-        return GC_MALLOC_ATOMIC(size);
-    }
-}
+/* char *pypy_malloc_atomic_ringbuffer(long size) { */
+/*     if (size <= ringbufentry_maxsize) { //test expected to be optimized away during compile time */
+/*         ringbufindex = (ringbufindex + ringbufentry_maxsize) & (ringbufsize - 1); */
+/*         return &ringbufdata[ringbufindex]; */
+/*     } else { */
+/*         return GC_MALLOC_ATOMIC(size); */
+/*     } */
+/* } */
 



More information about the Pypy-commit mailing list