Skip to content

Instantly share code, notes, and snippets.

@JoelMarcey
Created November 21, 2015 04:30
Show Gist options
  • Save JoelMarcey/5260222bbf29df93ace4 to your computer and use it in GitHub Desktop.
Save JoelMarcey/5260222bbf29df93ace4 to your computer and use it in GitHub Desktop.
malloc_usable_size
[joelm@devbig429:/var/tmp/oss_sync_and_push/hhvm] (master) $ sfind malloc_usable_size
Binary file ./third-party/wangle/libwangle.a matches
./third-party/wangle/CMakeLists.txt:12:# like malloc_usable_size() from either malloc.h
Binary file ./third-party/wangle/CMakeFiles/wangle.dir/src/wangle/concurrent/ThreadPoolExecutor.cpp.o matches
./third-party/webscalesqlclient/mysql-5.6/rocksdb/table/block.h:47: return malloc_usable_size(contents_.allocation.get());
./third-party/webscalesqlclient/mysql-5.6/rocksdb/util/arena.cc:187: blocks_memory_ += malloc_usable_size(block);
./third-party/webscalesqlclient/mysql-5.6/rocksdb/build_tools/build_detect_platform:312: # Test whether malloc_usable_size is available
./third-party/webscalesqlclient/mysql-5.6/rocksdb/build_tools/build_detect_platform:316: size_t res = malloc_usable_size(0);
./third-party/libsqlite3/sqlite3.c:15458:** the malloc_usable_size() interface exists
./third-party/libsqlite3/sqlite3.c:15483:** The MSVCRT has malloc_usable_size() but it is called _msize().
./third-party/libsqlite3/sqlite3.c:15519:# include <malloc.h> /* Needed for malloc_usable_size on linux */
./third-party/libsqlite3/sqlite3.c:15523:# define SQLITE_MALLOCSIZE(x) malloc_usable_size(x)
./third-party/folly/src/folly/Malloc.h:92:// for malloc_usable_size
./third-party/folly/src/folly/small_vector.h:65:# define malloc_usable_size malloc_size
./third-party/folly/src/folly/small_vector.h:67:# ifndef malloc_usable_size
./third-party/folly/src/folly/small_vector.h:68:# define malloc_usable_size malloc_size
./third-party/folly/src/folly/small_vector.h:641: return malloc_usable_size(u.pdata_.heap_) / sizeof(value_type);
./third-party/folly/src/folly/Portability.h:342:// MacOS doesn't have malloc_usable_size()
./third-party/folly/src/folly/Portability.h:344:inline size_t malloc_usable_size(void* ptr) {
./third-party/folly/src/folly/configure.ac:436: malloc_usable_size \
./third-party/folly/CMakeLists.txt:7:# like malloc_usable_size() from either malloc.h
./hphp/util/tiny-vector.h:156: newHeap->capacity = (malloc_usable_size(newHeap) -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment