[pypy-svn] r53235 - pypy/dist/pypy/rpython/memory/gc
fijal at codespeak.net
fijal at codespeak.net
Tue Apr 1 18:32:10 CEST 2008
Author: fijal
Date: Tue Apr 1 18:32:10 2008
New Revision: 53235
Modified:
pypy/dist/pypy/rpython/memory/gc/generation.py
Log:
introduce a hack. toon, please test it.
Modified: pypy/dist/pypy/rpython/memory/gc/generation.py
==============================================================================
--- pypy/dist/pypy/rpython/memory/gc/generation.py (original)
+++ pypy/dist/pypy/rpython/memory/gc/generation.py Tue Apr 1 18:32:10 2008
@@ -6,6 +6,7 @@
from pypy.rlib.objectmodel import free_non_gc_object
from pypy.rlib.debug import ll_assert
from pypy.rpython.lltypesystem.lloperation import llop
+from pypy.rlib.nonconst import NonConstant
# The following flag is never set on young objects, i.e. the ones living
# in the nursery. It is initially set on all prebuilt and old objects,
@@ -500,7 +501,8 @@
size = rffi.sizeof(rffi.LONGLONG)
l2cache_p[0] = rffi.cast(rffi.LONGLONG, 0)
len_p[0] = rffi.cast(rffi.SIZE_T, size)
- result = sysctlbyname("hw.l2cachesize",
+ # XXX a hack for llhelper not being robust-enough
+ result = sysctlbyname(NonConstant("hw.l2cachesize"),
rffi.cast(rffi.VOIDP, l2cache_p),
len_p,
lltype.nullptr(rffi.VOIDP.TO),
More information about the Pypy-commit
mailing list