Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes | Private Attributes
FrameArena Class Reference

List of all members.

Public Member Functions

 FrameArena (PRUint32 aArenaSize=4096)
 ~FrameArena ()
 NS_HIDDEN_ (void *) AllocateFrame(size_t aSize)
 NS_HIDDEN_ (void) FreeFrame(size_t aSize

Public Attributes


Private Attributes

PLArenaPool mPool
voidmRecyclers [gMaxRecycledSize >> 2]

Detailed Description

Definition at line 593 of file nsPresShell.cpp.

Constructor & Destructor Documentation

FrameArena::FrameArena ( PRUint32  aArenaSize = 4096)

Definition at line 618 of file nsPresShell.cpp.

  : mFrameCount(0)
  // Initialize the arena pool
  PL_INIT_ARENA_POOL(&mPool, "FrameArena", aArenaSize);

  // Zero out the recyclers array
  memset(mRecyclers, 0, sizeof(mRecyclers));

Here is the call graph for this function:

Definition at line 632 of file nsPresShell.cpp.

  NS_ASSERTION(mFrameCount == 0,
               "Some objects allocated with AllocateFrame were not freed");
  // Free the arena in the pool and finish using it

Member Function Documentation

Member Data Documentation

Definition at line 600 of file nsPresShell.cpp.

Definition at line 610 of file nsPresShell.cpp.

Definition at line 614 of file nsPresShell.cpp.

The documentation for this class was generated from the following file: