由买买提看人间百态

topics

全部话题 - 话题: torelease
(共0页)
F*********k
发帖数: 42
1
好的,谢谢谢谢,我想我大概明白了,
我之前没看明白 FixedAllocator::Chunk::Deallocate 里边的
*toRelease = firstAvailableBlock_; 这句
其实这句实际上把当前和之前的连接起来了。
我把源码贴这里
void FixedAllocator::Chunk::Reset(std::size_t blockSize, unsigned char
blocks)
{
assert(blockSize > 0);
assert(blocks > 0);
// Overflow check
assert((blockSize * blocks) / blockSize == blocks);
firstAvailableBlock_ = 0;
blocksAvailable_ = blocks;
unsigned char i = 0;
unsigned char* p = pData_;
for (; i != blocks; p += blockSize)
... 阅读全帖
f********w
发帖数: 190
2
http://www.trust.org/trustmedia/news/china-134-nobel-laureates-
134 Nobel Laureates Urge Incoming Chinese President Xi Jinping toRelease
Nobel Peace Prize Laureate Liu Xiaobo and Wife Liu Xia
Citizens Petition to Chinese Government Launched at Change.Org by Archbishop
Tutu
(Washington, D.C. - New York - Paris - London - Brussels - Geneva) Today,
134 Nobel Laureates across all six Nobel disciplines wrote to incoming
Chinese President Xi Jinping, urginghim to immediately and unconditionally
releas... 阅读全帖
(共0页)