Rename smart->small in MM apis
commit13cadbd508e94449391e3c165e708f4b7cdd9f68
authorEdwin Smith <smith@fb.com>
Wed, 8 Jul 2015 16:13:47 +0000 (8 09:13 -0700)
committerhhvm-bot <hhvm-bot@fb.com>
Wed, 8 Jul 2015 16:32:58 +0000 (8 09:32 -0700)
tree43edb8247f99faa945463aa02e7b7f19a16f7c8b
parent34f821211d5f328673a174d835110d3118571b44
Rename smart->small in MM apis

Summary: Within the scope of the MemoryManager, the term "smart" generally referred
to the size-segregated freelists used for small object allocations. Rename
things accordingly:

size-tracked allocation apis:
  smartMallocSize      mallocSmallSize
  smartMallocSizeSlow  mallocSmallSizeSlow
  smartMallocSizeBig   mallocBigSize
  smartFreeSize        freeSmallSize
  smartFreeSizeBig     freeBigSize

malloc-style support (for req::malloc)
  smartMalloc          malloc
  smartMallocBig       mallocBig
  smartFree            free
  smartRealloc         realloc
  smartCallocBig       callocBig

constants:
  kMaxSmartSize              kMaxSmallSize
  kSmartFreeFill             kSmallFreeFill
  kSmartFreeWord             kSmallFreeWord
  kSmartSizeAlign            kSmallSizeAlign
  kSmartSizeAlignMask        kSmallSizeAlignMask
  kLgSmartSizeQuantum        kLgSmallSizeQuantum
  kNumSmartSizes             kNumSmallSizes
  kMaxSmartSizeLookup        kMaxSmallSizeLookup
  kSmartPreallocCountLimit   kSmallPreallocCountLimit
  kSmartPreallocBytesLimit   kSmallPreallocBytesLimit

utilites:
  smartSizeClass          smallSizeClass
  smartSize2IndexCompute  computeSmallSize2Index
  smartSize2IndexLookup   lookupSmallSize2Index
  smartIndex2Size         smallIndex2Size
  SMART_SIZE{S}           SMALL_SIZE{S}
  estimateSmartCap        estimateCap

Reviewed By: @jasone, @markw65

Differential Revision: D2223217
28 files changed:
hphp/doc/php.extension.compat.layer
hphp/runtime/base/apc-local-array-defs.h
hphp/runtime/base/apc-local-array.cpp
hphp/runtime/base/array-init.cpp
hphp/runtime/base/array-init.h
hphp/runtime/base/memory-manager-defs.h
hphp/runtime/base/memory-manager-inl.h
hphp/runtime/base/memory-manager.cpp
hphp/runtime/base/memory-manager.h
hphp/runtime/base/memory-usage-stats.h
hphp/runtime/base/object-data.cpp
hphp/runtime/base/object-data.h
hphp/runtime/base/packed-array.cpp
hphp/runtime/base/ref-data.h
hphp/runtime/base/req-ptr.cpp [moved from hphp/runtime/base/smart-ptr.cpp with 100% similarity]
hphp/runtime/base/req-ptr.h
hphp/runtime/base/resource-data.h
hphp/runtime/base/string-data.cpp
hphp/runtime/base/sweepable.h
hphp/runtime/base/type-array.cpp
hphp/runtime/ext/collections/ext_collections-idl.h
hphp/runtime/ext/gd/libgd/gdhelpers.h
hphp/runtime/ext/std/ext_std_string.cpp
hphp/runtime/ext_zend_compat/php-src/Zend/zend_ini.cpp
hphp/runtime/vm/bytecode.cpp
hphp/runtime/vm/jit/code-gen-x64.cpp
hphp/runtime/vm/native-data.cpp
hphp/tools/bootstrap/gen-ext-hhvm.cpp