Guardian Programmer's Guide

Table Of Contents
Contents
Guardian Programmer’s Guide421922-014
xiv
17. Managing Memory
17. Managing Memory
An Introduction to Memory-Management Procedures 17-1
Managing the User Data Areas 17-2
Managing the TNS User Data Segment 17-2
Managing the Native User Data Areas 17-6
Checking the Bounds of Your Data Areas 17-15
Using (Extended) Data Segments 17-16
Overview of Selectable Segments 17-17
Overview of Flat Segments 17-19
Which Type of Segment Should You Use? 17-20
Using Selectable Segments in TNS Processes 17-21
Accessing Data in Extended Data Segments 17-22
Attributes of Extended Data Segments 17-23
Allocating Extended Data Segments 17-23
Checking Whether an Extended Data Segment Is Selectable or Flat 17-28
Making a Selectable Segment Current 17-28
Referencing Data in an Extended Data Segment 17-29
Checking the Size of an Extended Data Segment 17-34
Changing the Size of an Extended Data Segment 17-34
Transferring Data Between an Extended Data Segment and a File 17-35
Moving Data Between Extended Data Segments 17-37
Checking Address Limits of an Extended Data Segment 17-38
Sharing an Extended Data Segment 17-39
Determining the Starting Address of a Flat Segment 17-41
Deallocating an Extended Data Segment 17-42
Using Memory Pools 17-42
Defining a Memory Pool 17-43
Getting Space in a Memory Pool 17-46
Returning Memory Pool Space 17-47
Changing the Size of a Memory Pool 17-47
Getting Information About a Memory Pool 17-48
Debugging a Memory Pool 17-48
18. Managing Time
How the System Keeps Time 18-1
Clock Averaging and System Time 18-1
Time Zones and Daylight Saving Time 18-2
128-Bit, 64-Bit, and 48-Bit Timestamps 18-2