PPL Logo

SuperBlock Class Reference

SuperBlock holds the actual memory block that is allocated in blk. More...

#include <memory_temporal.h>

Collaboration diagram for SuperBlock:

Collaboration graph
[legend]

Public Member Functions

 SuperBlock ()
 ~SuperBlock ()
void initBlock ()
 Allocate and set initial values.
void resetBlock ()
bool noLongerReferenced ()
char * sb_alloc (int sz)
 return pos, and advance pos by sz, aligned to 16 bytes, inc refCount
bool sb_free (void *mem)
SuperBlockgetNextBlock ()
void setNextBlock (SuperBlock *loc)
int getPercentFull ()
void sanity_check ()

Private Attributes

int refCount
char * blk
char * pos
int percent_full
SuperBlocknextBlock

Detailed Description

SuperBlock holds the actual memory block that is allocated in blk.

Definition at line 38 of file memory_temporal.h.


Constructor & Destructor Documentation

SuperBlock::SuperBlock (  )  [inline]

Definition at line 46 of file memory_temporal.h.

SuperBlock::~SuperBlock (  )  [inline]

Definition at line 47 of file memory_temporal.h.

References blk, and free().

Here is the call graph for this function:


Member Function Documentation

void SuperBlock::initBlock (  )  [inline]

Allocate and set initial values.

Definition at line 49 of file memory_temporal.h.

References blk, malloc(), nextBlock, percent_full, pos, and refCount.

Referenced by TimeBucket::initBucket(), and TimeBucket::tb_alloc().

Here is the call graph for this function:

Here is the caller graph for this function:

void SuperBlock::resetBlock (  )  [inline]

Definition at line 56 of file memory_temporal.h.

References blk, nextBlock, percent_full, pos, and refCount.

Referenced by TimeBucket::initBucket(), and TimeBucket::tb_alloc().

Here is the caller graph for this function:

bool SuperBlock::noLongerReferenced (  )  [inline]

Definition at line 63 of file memory_temporal.h.

References refCount.

Referenced by TimePool::clean_up(), TimeBucket::sanity_check(), and TimeBucket::tb_free().

Here is the caller graph for this function:

char* SuperBlock::sb_alloc ( int  sz  )  [inline]

return pos, and advance pos by sz, aligned to 16 bytes, inc refCount

Definition at line 65 of file memory_temporal.h.

References blk, int, percent_full, pos, and refCount.

Referenced by TimeBucket::tb_alloc().

Here is the caller graph for this function:

bool SuperBlock::sb_free ( void *  mem  )  [inline]

Definition at line 88 of file memory_temporal.h.

References blk, pos, and refCount.

Referenced by TimeBucket::tb_free().

Here is the caller graph for this function:

SuperBlock* SuperBlock::getNextBlock (  )  [inline]

void SuperBlock::setNextBlock ( SuperBlock loc  )  [inline]

Definition at line 107 of file memory_temporal.h.

References nextBlock.

Referenced by TimePool::clean_up(), and TimeBucket::tb_alloc().

Here is the caller graph for this function:

int SuperBlock::getPercentFull (  )  [inline]

Definition at line 108 of file memory_temporal.h.

References percent_full.

Referenced by TimeBucket::isVeryFull().

Here is the caller graph for this function:

void SuperBlock::sanity_check (  ) 

Definition at line 12 of file memory_temporal.C.

Referenced by TimeBucket::sanity_check().

Here is the caller graph for this function:


Field Documentation

Definition at line 39 of file memory_temporal.h.

Referenced by initBlock(), noLongerReferenced(), resetBlock(), sb_alloc(), and sb_free().

char* SuperBlock::blk [private]

Definition at line 40 of file memory_temporal.h.

Referenced by initBlock(), resetBlock(), sb_alloc(), sb_free(), and ~SuperBlock().

char* SuperBlock::pos [private]

Definition at line 41 of file memory_temporal.h.

Referenced by initBlock(), resetBlock(), sb_alloc(), and sb_free().

Definition at line 42 of file memory_temporal.h.

Referenced by getPercentFull(), initBlock(), resetBlock(), and sb_alloc().

Definition at line 43 of file memory_temporal.h.

Referenced by getNextBlock(), initBlock(), resetBlock(), and setNextBlock().


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

Generated on Mon Sep 21 08:30:19 2020 for Charm++ by  doxygen 1.5.5