Changeset 164742 in webkit for trunk/Source/WTF/wtf/FastMalloc.cpp
- Timestamp:
- Feb 26, 2014, 1:17:35 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WTF/wtf/FastMalloc.cpp
r164728 r164742 637 637 // sense. In particular, if kMaxSize increases, you may have to 638 638 // increase kNumClasses as well. 639 #define K_PAGE_SHIFT_MIN 12 639 640 #define K_PAGE_SHIFT_MAX 14 640 641 #define K_NUM_CLASSES_MAX 77 … … 1665 1666 template <int BITS> class MapSelector { 1666 1667 public: 1667 typedef TCMalloc_PageMap3<BITS-K_PAGE_SHIFT_M AX> Type;1668 typedef TCMalloc_PageMap3<BITS-K_PAGE_SHIFT_MIN> Type; 1668 1669 typedef PackedCache<BITS, uint64_t> CacheType; 1669 1670 }; … … 1683 1684 template <> class MapSelector<64> { 1684 1685 public: 1685 typedef TCMalloc_PageMap3<64 - K_PAGE_SHIFT_M AX- kBitsUnusedOn64Bit> Type;1686 typedef TCMalloc_PageMap3<64 - K_PAGE_SHIFT_MIN - kBitsUnusedOn64Bit> Type; 1686 1687 typedef PackedCache<64, uint64_t> CacheType; 1687 1688 }; … … 1691 1692 template <> class MapSelector<32> { 1692 1693 public: 1693 typedef TCMalloc_PageMap2<32 - K_PAGE_SHIFT_M AX> Type;1694 typedef PackedCache<32 - K_PAGE_SHIFT_M AX, uint16_t> CacheType;1694 typedef TCMalloc_PageMap2<32 - K_PAGE_SHIFT_MIN> Type; 1695 typedef PackedCache<32 - K_PAGE_SHIFT_MIN, uint16_t> CacheType; 1695 1696 }; 1696 1697
Note:
See TracChangeset
for help on using the changeset viewer.