def __init__(self, config, space_size=4096, max_space_size=sys.maxint // 2 + 1, **kwds): self.param_space_size = space_size self.param_max_space_size = max_space_size MovingGCBase.__init__(self, config, **kwds)
def setup(self): #self.total_collection_time = 0.0 self.total_collection_count = 0 self.space_size = self.param_space_size self.max_space_size = self.param_max_space_size self.red_zone = 0 #self.program_start_time = time.time() self.tospace = llarena.arena_malloc(self.space_size, True) ll_assert(bool(self.tospace), "couldn't allocate tospace") self.top_of_space = self.tospace + self.space_size self.fromspace = llarena.arena_malloc(self.space_size, True) ll_assert(bool(self.fromspace), "couldn't allocate fromspace") self.free = self.tospace MovingGCBase.setup(self) self.objects_with_finalizers = self.AddressDeque() self.objects_with_light_finalizers = self.AddressStack() self.objects_with_weakrefs = self.AddressStack()
def __init__(self, config, space_size=4096, max_space_size=sys.maxint//2+1, **kwds): self.param_space_size = space_size self.param_max_space_size = max_space_size MovingGCBase.__init__(self, config, **kwds)