Home
last modified time | relevance | path

Searched refs:tableSize_ (Results 1 – 2 of 2) sorted by relevance

/ohos5.0/base/hiviewdfx/faultloggerd/interfaces/innerkits/async_stack/
H A Dunique_stack_table.cpp37 totalNodes_ = ((tableSize_ / sizeof(Node)) >> 1) << 1; // make it even. in Init()
49 …auto retBufMMap = mmap(NULL, tableSize_, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, … in Init()
55 prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, tableBufMMap_, tableSize_, "async_stack_table"); in Init()
83 uint32_t newtableSize = tableSize_ << RESIZE_MULTIPLE; in Resize()
89 if (memcpy_s(newTableBuf, newtableSize, tableBufMMap_, tableSize_) != 0) { in Resize()
92 munmap(tableBufMMap_, tableSize_); in Resize()
94 tableSize_ = newtableSize; in Resize()
189 size += sizeof(tableSize_); in GetWriteSize()
235 if (index >= tableSize_) { in ImportNode()
/ohos5.0/base/hiviewdfx/faultloggerd/interfaces/innerkits/async_stack/include/
H A Dunique_stack_table.h90 UniqueStackTable(pid_t pid, uint32_t size) : pid_(pid), tableSize_(size) in UniqueStackTable()
95 :tableBufMMap_(buf), tableSize_(size), releaseBuffer_(releaseBuffer)
97 totalNodes_ = ((tableSize_ / sizeof(Node)) >> 1) << 1;
103 munmap(tableBufMMap_, tableSize_); in ~UniqueStackTable()
122 return tableSize_; in GetTabelSize()
140 uint32_t tableSize_ = INITIAL_TABLE_SIZE; variable