Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Typedefs | Enumerations | Functions | Variables
prgc.h File Reference
#include "prtypes.h"
#include "prmon.h"
#include "prthread.h"
#include <stdio.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  GCType
struct  PRSummaryEntry
struct  GCLockHook
struct  GCInfoStr

Defines

#define GCPTR
#define PR_ALLOC_CLEAN   0x1
#define PR_ALLOC_DOUBLE   0x2
#define PR_ALLOC_ZERO_HANDLE   0x4 /* XXX yes, it's a hack */
#define GC_IN_HEAP(_info, _p)
#define GC_TRACE   0x0001
#define GC_ROOTS   0x0002
#define GC_LIVE   0x0004
#define GC_ALLOC   0x0008
#define GC_MARK   0x0010
#define GC_SWEEP   0x0020
#define GC_DEBUG   0x0040
#define GC_FINAL   0x0080
#define GCTRACE(x, y)

Typedefs

typedef PRInt32(* PRWalkFun )(void GCPTR *obj, void *data)
typedef struct GCType GCType
typedef struct PRSummaryEntry PRSummaryEntry
typedef void(PR_CALLBACKPRSummaryPrinter )(FILE *out, void *closure)
typedef void PR_CALLBACK GCRootFinder (void *arg)
typedef void PR_CALLBACK GCBeginFinalizeHook (void *arg)
typedef void PR_CALLBACK GCEndFinalizeHook (void *arg)
typedef void PR_CALLBACK GCBeginGCHook (void *arg)
typedef void PR_CALLBACK GCEndGCHook (void *arg)
typedef void PR_CALLBACK GCLockHookFunc (GCLockHookArg arg1, void *arg2)
typedef struct GCLockHook
typedef struct GCInfoStr GCInfo

Enumerations

enum  GCLockHookArg { PR_GCBEGIN, PR_GCEND }

Functions

PR_BEGIN_EXTERN_C PR_EXTERN (void) PR_InitGC(PRWord flags
 Sets SecurityCotext for proxy env.
 PR_EXTERN (int) PR_RegisterGCLockHook(GCLockHookFunc *hook
 PR_EXTERN (PRStatus) PR_RegisterRootFinder(GCRootFinder func
 PR_EXTERN (PRWord GCPTR *) PR_AllocMemory(PRWord bytes
 PR_EXTERN (GCInfo *) PR_GetGCInfo(void)
 PR_EXTERN (PRBool) PR_GC_In_Heap(void GCPTR *object)

Variables

PR_BEGIN_EXTERN_C PRInt32 initialHeapSize
PR_BEGIN_EXTERN_C PRInt32 PRInt32 segmentSize
PR_BEGIN_EXTERN_C PRInt32
PRInt32 PRThreadScope 
scope
voidclosure
voidarg
char * name
PRInt32 typeIndex
PRInt32 PRWord flags
PRBool detailed
PRIntn indent
PRWord newUserBits

Class Documentation

struct PRSummaryEntry

Definition at line 139 of file prgc.h.

Class Members
void * clazz
PRInt32 instancesCount
PRInt32 totalSize
struct GCLockHook

Definition at line 166 of file prgc.h.

Collaboration diagram for GCLockHook:
Class Members
void * arg
GCLockHookFunc * func
GCLockHook * next
GCLockHook * prev

Define Documentation

#define GC_ALLOC   0x0008

Definition at line 400 of file prgc.h.

#define GC_DEBUG   0x0040

Definition at line 403 of file prgc.h.

#define GC_FINAL   0x0080

Definition at line 404 of file prgc.h.

#define GC_IN_HEAP (   _info,
  _p 
)
Value:
(((PRWord*)(_p) >= (_info)->lowSeg) && \
                               ((PRWord*)(_p) <  (_info)->highSeg))

Definition at line 379 of file prgc.h.

#define GC_LIVE   0x0004

Definition at line 399 of file prgc.h.

#define GC_MARK   0x0010

Definition at line 401 of file prgc.h.

#define GC_ROOTS   0x0002

Definition at line 398 of file prgc.h.

#define GC_SWEEP   0x0020

Definition at line 402 of file prgc.h.

#define GC_TRACE   0x0001

Definition at line 397 of file prgc.h.

Definition at line 52 of file prgc.h.

#define GCTRACE (   x,
  y 
)

Definition at line 414 of file prgc.h.

Definition at line 251 of file prgc.h.

Definition at line 252 of file prgc.h.

#define PR_ALLOC_ZERO_HANDLE   0x4 /* XXX yes, it's a hack */

Definition at line 253 of file prgc.h.


Typedef Documentation

Definition at line 155 of file prgc.h.

Definition at line 157 of file prgc.h.

Definition at line 156 of file prgc.h.

Definition at line 158 of file prgc.h.

typedef struct GCInfoStr GCInfo
typedef struct GCLockHook

Definition at line 164 of file prgc.h.

Definition at line 162 of file prgc.h.

Definition at line 154 of file prgc.h.

typedef struct GCType GCType

Definition at line 150 of file prgc.h.

Definition at line 78 of file prgc.h.


Enumeration Type Documentation

Enumerator:
PR_GCBEGIN 
PR_GCEND 

Definition at line 160 of file prgc.h.


Function Documentation

Sets SecurityCotext for proxy env.

XPI_Exit.

PR_EXTERN ( int  )
PR_EXTERN ( GCInfo )

Variable Documentation

char void* arg

Definition at line 181 of file prgc.h.

Definition at line 152 of file prgc.h.

Definition at line 273 of file prgc.h.

Definition at line 239 of file prgc.h.

PRIntn indent

Definition at line 294 of file prgc.h.

Definition at line 67 of file prgc.h.

char* name

Definition at line 224 of file prgc.h.

Definition at line 392 of file prgc.h.

Definition at line 67 of file prgc.h.

Definition at line 67 of file prgc.h.

Definition at line 239 of file prgc.h.