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