Commits

Armin Rigo committed 516680f

Old checkin

  • Participants
  • Parent commits c848ebb
  • Branches stm-gc-2

Comments (0)

Files changed (1)

rpython/memory/gc/stmshared.py

         some other data structure.  Note that it is not zero-filled."""
         nsize = llmemory.raw_malloc_usage(totalsize)
         if nsize <= self.sharedarea.small_request_threshold:
-            size_class = (nsize + WORD_POWER_2 - 1) >> WORD_POWER_2
+            size_class = (nsize + WORD - 1) >> WORD_POWER_2
             return self._malloc_size_class(size_class)
         else:
             count = llmemory.raw_malloc_usage(totalsize)