Back to index

lightning-sunbird  0.9+nobinonly
Defines | Functions
os2gc.c File Reference
#include "prlog.h"
#include <stdlib.h>

Go to the source code of this file.

Defines

#define MAX_SEGMENT_SIZE   (65536L - 4096L)

Functions

void _MD_InitGC ()
void_MD_GrowGCHeap (PRUint32 *sizep)
PRBool _MD_ExtendGCHeap (char *base, PRInt32 oldSize, PRInt32 newSize)
void _MD_FreeGCSegment (void *base, PRInt32 len)

Define Documentation

#define MAX_SEGMENT_SIZE   (65536L - 4096L)

Definition at line 47 of file os2gc.c.


Function Documentation

PRBool _MD_ExtendGCHeap ( char *  base,
PRInt32  oldSize,
PRInt32  newSize 
)

Definition at line 71 of file os2gc.c.

                                                                      {
  /* Not sure about this.  Todd?  */
  return PR_FALSE;
}
void _MD_FreeGCSegment ( void base,
PRInt32  len 
)

Definition at line 77 of file os2gc.c.

{
   if (base)
   {
       free(base);
   }
}
void* _MD_GrowGCHeap ( PRUint32 sizep)

Definition at line 57 of file os2gc.c.

{
    void *addr;

    if ( *sizep > MAX_SEGMENT_SIZE )
    {
        *sizep = MAX_SEGMENT_SIZE;
    }

    addr = malloc((size_t)*sizep);
    return addr;
}

Definition at line 55 of file os2gc.c.

{}