Package RASCAL.Heap

DescriptionThick binding to the Flex shifting heap.
Authorbbracke
Date2005/11/21 20:14:33
Revision1.1
 

Clauses

Quick access : ClausesGenericsDefinitionsSubprograms


 
Context clauses
Ada.Strings.Fixed
System
Ada.Finalization
RASCAL.OS
Kernel
 
Use clauses
Ada.Strings.Fixed
System
RASCAL.OS
 

Definitions

Quick access : ClausesGenericsDefinitionsSubprograms


Types
Name Declaration
Heap_Block_Typeprivate
Heap_Block_Pointeraccess all Heap_Block_Type
  
Exceptions
Unable_To_Extend_Block
Unable_To_Allocate_Block
 

Subprograms

Quick access : ClausesGenericsDefinitionsSubprograms


  
Set_Name procedure
The name of the dynamic area used for the heap.
Parameter name Type Mode Default
NameStringin
  
Set_MaxSize procedure
This sets the max size of the dynamic area used for the heap. If the value is 0 the WimpSlot will be used instead of a dynamic area.
Parameter name Type Mode Default
ExtentNaturalin0
  
Set_MessagesFile procedure
This sets the messages file from which error messages will be read. Otherwise default (UK) messages will be used.
Parameter name Type Mode Default
MessagesMessages_Handle_Typein
  
Get_Address function
ReturnAddress
Returns the address of the block.
Parameter name Type Mode Default
TheHeap_Block_Typein
  
Get_Size function
ReturnInteger
Returns the size of the block.
Parameter name Type Mode Default
TheHeap_Block_Typein
  
Extend procedure
Extends the block to the new size.
Parameter name Type Mode Default
TheHeap_Block_Typein out
New_SizeNaturalin
  
Mid_Extend procedure
Extends or truncates block, at any point.
Parameter name Type Mode Default
TheHeap_Block_Typein out
LocationIntegerin
ExtentIntegerin
  
Re_Anchor procedure
Move the anchor of an allocated block.
Parameter name Type Mode Default
TheHeap_Block_Typein out
ToHeap_Block_Typein out
  
Set_Budge procedure
Set whether to move the flex store when the runtime needs to extend the heap.
Parameter name Type Mode Default
BudgeBooleanin
  
Save_HeapInfo procedure
Appends information about the flex heap to the passed file.
Parameter name Type Mode Default
FilenameStringin
  
Compact function
ReturnBoolean
Compacts the flex heap. Returns 'true' if compaction is complete.
  
Set_Deferred_Compaction procedure
Sets whether flex should compact its heap on every flex_free or on flex_alloc and flex_compact, flex_budge and flex_extend.
Parameter name Type Mode Default
TheHeap_Block_Typein out
DeferBooleanin
  
Free procedure
Deallocates the block.
Parameter name Type Mode Default
TheHeap_Block_Typein out