Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions
nsAtomTable.h File Reference
#include "nsIAtom.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  AtomImpl
 A threadsafely-refcounted implementation of nsIAtom. More...
class  PermanentAtomImpl
 A non-refcounted implementation of nsIAtom. More...

Functions

void NS_PurgeAtomTable ()

Function Documentation

Definition at line 263 of file nsAtomTable.cpp.

{
  if (gAtomTable.ops) {
#ifdef DEBUG
    if (PR_GetEnv("MOZ_DUMP_ATOM_LEAKS")) {
      PRUint32 leaked = 0;
      printf("*** %d atoms still exist (including permanent):\n",
             gAtomTable.entryCount);
      PL_DHashTableEnumerate(&gAtomTable, DumpAtomLeaks, &leaked);
      printf("*** %u non-permanent atoms leaked\n", leaked);
    }
#endif
    PL_DHashTableFinish(&gAtomTable);
    gAtomTable.entryCount = 0;
    gAtomTable.ops = nsnull;

    if (gStaticAtomArena) {
      PL_FinishArenaPool(gStaticAtomArena);
      delete gStaticAtomArena;
      gStaticAtomArena = nsnull;
    }
  }
}

Here is the call graph for this function:

Here is the caller graph for this function: