示例#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
示例#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
示例#3
0
def gc_swap_pool(pool):
    if we_are_translated():
        return rgc.gc_swap_pool(pool)
示例#4
0
 def goodbye_local_pool(self):
     if we_are_translated():
         self.local_pool = gc_swap_pool(self.saved_pool)
         self.saved_pool = None
示例#5
0
 def hello_local_pool(self):
     if we_are_translated():
         self.saved_pool = gc_swap_pool(self.local_pool)