Lines Matching refs:chunk
7921 void Heap::QueueMemoryChunkForFree(MemoryChunk* chunk) {
7922 chunk->set_next_chunk(chunks_queued_for_free_);
7923 chunks_queued_for_free_ = chunk;
7930 MemoryChunk* chunk;
7931 for (chunk = chunks_queued_for_free_; chunk != NULL; chunk = next) {
7932 next = chunk->next_chunk();
7933 chunk->SetFlag(MemoryChunk::ABOUT_TO_BE_FREED);
7935 if (chunk->owner()->identity() == LO_SPACE) {
7938 // chunk queued for deletion it will fail to find the chunk because
7941 // To work around this we split large chunk into normal kPageSize aligned
7945 Address chunk_end = chunk->address() + chunk->size();
7947 chunk->address() + Page::kPageSize);
7950 // Size of a large chunk is always a multiple of
7967 for (chunk = chunks_queued_for_free_; chunk != NULL; chunk = next) {
7968 next = chunk->next_chunk();
7969 isolate_->memory_allocator()->Free(chunk);