Example #1
0
 def f():
     s = lltype.malloc(S)
     gc_swap_pool(None)
     try:
         t = gc_clone(s, None)
     except RuntimeError:
         return 1
     else:
         return 0
Example #2
0
 def f():
     s = lltype.malloc(S)
     gc_swap_pool(None)
     try:
         t = gc_clone(s, None)
     except RuntimeError:
         return 1
     else:
         return 0
Example #3
0
def gc_swap_pool(pool):
    if we_are_translated():
        return rgc.gc_swap_pool(pool)
Example #4
0
 def goodbye_local_pool(self):
     if we_are_translated():
         self.local_pool = gc_swap_pool(self.saved_pool)
         self.saved_pool = None
Example #5
0
 def hello_local_pool(self):
     if we_are_translated():
         self.saved_pool = gc_swap_pool(self.local_pool)