/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef gc_ChunkPool_h #define gc_ChunkPool_h
#include"js/HeapAPI.h"
namespace js { namespace gc {
class ChunkPool {
ArenaChunk* head_;
size_t count_;
public: // Pool mutation does not invalidate an Iter unless the mutation // is of the ArenaChunk currently being visited by the Iter. class Iter {
public: explicit Iter(ChunkPool& pool) : current_(pool.head_) {} bool done() const { return !current_; } void next();
ArenaChunk* get() const { return current_; } operator ArenaChunk*() const { return get(); }
ArenaChunk* operator->() const { return get(); }
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.