コード例 #1
0
ファイル: generation.py プロジェクト: antoine1fr/pygirl
 def setup(self):
     SemiSpaceGC.setup(self)
     self.set_nursery_size(self.initial_nursery_size)
     # the GC is fully setup now.  The rest can make use of it.
     if self.auto_nursery_size:
         newsize = nursery_size_from_env()
         if newsize <= 0:
             newsize = estimate_best_nursery_size()
         if newsize > 0:
             self.set_nursery_size(newsize)
コード例 #2
0
ファイル: generation.py プロジェクト: chyyuu/pygirl
 def setup(self):
     SemiSpaceGC.setup(self)
     self.set_nursery_size(self.initial_nursery_size)
     # the GC is fully setup now.  The rest can make use of it.
     if self.auto_nursery_size:
         newsize = nursery_size_from_env()
         if newsize <= 0:
             newsize = estimate_best_nursery_size()
         if newsize > 0:
             self.set_nursery_size(newsize)
コード例 #3
0
ファイル: generation.py プロジェクト: griels/pypy-sc
 def setup(self):
     self.last_generation_root_objects = self.AddressStack()
     self.young_objects_with_id = self.AddressDict()
     SemiSpaceGC.setup(self)
     self.set_nursery_size(self.initial_nursery_size)
     # the GC is fully setup now.  The rest can make use of it.
     if self.auto_nursery_size:
         newsize = nursery_size_from_env()
         if newsize <= 0:
             newsize = estimate_best_nursery_size()
         if newsize > 0:
             self.set_nursery_size(newsize)
コード例 #4
0
 def setup(self):
     self.last_generation_root_objects = self.AddressStack()
     self.young_objects_with_id = self.AddressDict()
     SemiSpaceGC.setup(self)
     self.set_nursery_size(self.initial_nursery_size)
     # the GC is fully setup now.  The rest can make use of it.
     if self.auto_nursery_size:
         newsize = nursery_size_from_env()
         if newsize <= 0:
             newsize = estimate_best_nursery_size(
                 self.config.gcconfig.debugprint)
         if newsize > 0:
             self.set_nursery_size(newsize)
コード例 #5
0
ファイル: generation.py プロジェクト: alkorzt/pypy
    def setup(self):
        self.old_objects_pointing_to_young = self.AddressStack()
        # ^^^ a list of addresses inside the old objects space; it
        # may contain static prebuilt objects as well.  More precisely,
        # it lists exactly the old and static objects whose
        # GCFLAG_NO_YOUNG_PTRS bit is not set.
        self.young_objects_with_weakrefs = self.AddressStack()

        self.last_generation_root_objects = self.AddressStack()
        self.young_objects_with_id = self.AddressDict()
        SemiSpaceGC.setup(self)
        self.set_nursery_size(self.initial_nursery_size)
        # the GC is fully setup now.  The rest can make use of it.
        if self.auto_nursery_size:
            newsize = nursery_size_from_env()
            if newsize <= 0:
                newsize = estimate_best_nursery_size()
            if newsize > 0:
                self.set_nursery_size(newsize)

        self.reset_nursery()
コード例 #6
0
    def setup(self):
        self.old_objects_pointing_to_young = self.AddressStack()
        # ^^^ a list of addresses inside the old objects space; it
        # may contain static prebuilt objects as well.  More precisely,
        # it lists exactly the old and static objects whose
        # GCFLAG_NO_YOUNG_PTRS bit is not set.
        self.young_objects_with_weakrefs = self.AddressStack()

        self.last_generation_root_objects = self.AddressStack()
        self.young_objects_with_id = self.AddressDict()
        SemiSpaceGC.setup(self)
        self.set_nursery_size(self.initial_nursery_size)
        # the GC is fully setup now.  The rest can make use of it.
        if self.auto_nursery_size:
            newsize = nursery_size_from_env()
            if newsize <= 0:
                newsize = env.estimate_best_nursery_size()
            if newsize > 0:
                self.set_nursery_size(newsize)

        self.reset_nursery()