VirtualSpace Class Reference

#include <virtualspace.hpp>

Inheritance diagram for VirtualSpace:

Inheritance graph
[legend]
Collaboration diagram for VirtualSpace:

Collaboration graph
[legend]
List of all members.

Public Member Functions

char * low () const
char * high () const
char * low_boundary () const
char * high_boundary () const
 VirtualSpace (int reserved_size, int committed_size, bool low_to_high=true)
 VirtualSpace (ReservedSpace reserved, int committed_size, bool low_to_high=true)
 VirtualSpace ()
void initialize (ReservedSpace reserved, int committed_size, bool low_to_high=true)
 ~VirtualSpace ()
int committed_size () const
int reserved_size () const
int uncommitted_size () const
bool contains (void *p) const
bool low_to_high () const
void expand (int size)
void shrink (int size)
void release ()
void print ()
virtual void page_fault ()

Private Attributes

char * _low_boundary
char * _high_boundary
char * _low
char * _high
bool _low_to_high
VirtualSpacenext

Friends

class VirtualSpaces

Detailed Description

Definition at line 55 of file virtualspace.hpp.


Constructor & Destructor Documentation

VirtualSpace::VirtualSpace ( int  reserved_size,
int  committed_size,
bool  low_to_high = true 
)

Definition at line 53 of file virtualspace.cpp.

References initialize().

Here is the call graph for this function:

VirtualSpace::VirtualSpace ( ReservedSpace  reserved,
int  committed_size,
bool  low_to_high = true 
)

Definition at line 58 of file virtualspace.cpp.

References initialize().

Here is the call graph for this function:

VirtualSpace::VirtualSpace (  ) 

Definition at line 62 of file virtualspace.cpp.

References _high, _high_boundary, _low, _low_boundary, and _low_to_high.

VirtualSpace::~VirtualSpace (  ) 

Definition at line 88 of file virtualspace.cpp.

References release().

Here is the call graph for this function:


Member Function Documentation

int VirtualSpace::committed_size (  )  const

Definition at line 101 of file virtualspace.cpp.

References high(), and low().

Referenced by print(), shrink(), and uncommitted_size().

Here is the call graph for this function:

bool VirtualSpace::contains ( void *  p  )  const

Definition at line 113 of file virtualspace.cpp.

References high(), and low().

Here is the call graph for this function:

void VirtualSpace::expand ( int  size  ) 

Definition at line 122 of file virtualspace.cpp.

References _high, _low, assert, os::commit_memory(), fatal, high(), low(), low_boundary(), uncommitted_size(), and os::vm_page_size().

Referenced by oldSpace::expand_and_allocate(), initialize(), and VirtualSpaces::test().

Here is the call graph for this function:

char* VirtualSpace::high (  )  const [inline]

Definition at line 73 of file virtualspace.hpp.

References _high.

Referenced by committed_size(), contains(), expand(), print(), and shrink().

char* VirtualSpace::high_boundary (  )  const [inline]

Definition at line 76 of file virtualspace.hpp.

References _high_boundary.

Referenced by initialize(), oldGeneration::initialize(), newGeneration::initialize(), print(), and reserved_size().

void VirtualSpace::initialize ( ReservedSpace  reserved,
int  committed_size,
bool  low_to_high = true 
)

Definition at line 70 of file virtualspace.cpp.

References _high, _high_boundary, _low, _low_boundary, _low_to_high, VirtualSpaces::add(), ReservedSpace::base(), expand(), fatal, high_boundary(), low(), low_boundary(), and ReservedSpace::size().

Referenced by oldGeneration::initialize(), newGeneration::initialize(), and VirtualSpace().

Here is the call graph for this function:

char* VirtualSpace::low (  )  const [inline]

Definition at line 72 of file virtualspace.hpp.

References _low.

Referenced by committed_size(), contains(), expand(), initialize(), newGeneration::initialize(), print(), and shrink().

char* VirtualSpace::low_boundary (  )  const [inline]

Definition at line 75 of file virtualspace.hpp.

References _low_boundary.

Referenced by expand(), initialize(), oldGeneration::initialize(), newGeneration::initialize(), print(), release(), reserved_size(), and shrink().

bool VirtualSpace::low_to_high (  )  const

Definition at line 117 of file virtualspace.cpp.

References _low_to_high.

virtual void VirtualSpace::page_fault (  )  [inline, virtual]

Definition at line 103 of file virtualspace.hpp.

void VirtualSpace::print (  ) 

Definition at line 146 of file virtualspace.cpp.

References committed_size(), high(), high_boundary(), low(), low_boundary(), outputStream::print_cr(), reserved_size(), and std.

Referenced by VirtualSpaces::test().

Here is the call graph for this function:

void VirtualSpace::release (  ) 

Definition at line 92 of file virtualspace.cpp.

References _high, _high_boundary, _low, _low_boundary, low_boundary(), os::release_memory(), VirtualSpaces::remove(), and reserved_size().

Referenced by ~VirtualSpace().

Here is the call graph for this function:

int VirtualSpace::reserved_size (  )  const

Definition at line 105 of file virtualspace.cpp.

References high_boundary(), and low_boundary().

Referenced by print(), release(), and uncommitted_size().

Here is the call graph for this function:

void VirtualSpace::shrink ( int  size  ) 

Definition at line 134 of file virtualspace.cpp.

References _high, _low, assert, committed_size(), fatal, high(), low(), low_boundary(), os::uncommit_memory(), and os::vm_page_size().

Referenced by VirtualSpaces::test().

Here is the call graph for this function:

int VirtualSpace::uncommitted_size (  )  const

Definition at line 109 of file virtualspace.cpp.

References committed_size(), and reserved_size().

Referenced by expand().

Here is the call graph for this function:


Friends And Related Function Documentation

friend class VirtualSpaces [friend]

Definition at line 69 of file virtualspace.hpp.


Member Data Documentation

char* VirtualSpace::_high [private]

Definition at line 63 of file virtualspace.hpp.

Referenced by expand(), high(), initialize(), release(), shrink(), and VirtualSpace().

char* VirtualSpace::_high_boundary [private]

Definition at line 59 of file virtualspace.hpp.

Referenced by high_boundary(), initialize(), release(), and VirtualSpace().

char* VirtualSpace::_low [private]

Definition at line 62 of file virtualspace.hpp.

Referenced by expand(), initialize(), low(), release(), shrink(), and VirtualSpace().

char* VirtualSpace::_low_boundary [private]

Definition at line 58 of file virtualspace.hpp.

Referenced by initialize(), low_boundary(), release(), and VirtualSpace().

bool VirtualSpace::_low_to_high [private]

Definition at line 66 of file virtualspace.hpp.

Referenced by initialize(), low_to_high(), and VirtualSpace().

VirtualSpace* VirtualSpace::next [private]

Definition at line 68 of file virtualspace.hpp.

Referenced by VirtualSpaces::add(), VirtualSpaces::committed_size(), VirtualSpaces::print(), VirtualSpaces::remove(), VirtualSpaces::reserved_size(), and VirtualSpaces::uncommitted_size().


The documentation for this class was generated from the following files:
Generated on Mon Oct 9 14:20:54 2006 for Strongtalk VM by  doxygen 1.4.7