nn::os::StackMemory Class

Syntax

class StackMemory : public nn::os::MemoryBlockBase

Description

Class that partitions a specified memory region for use as a stack.

Remaps the specified memory region to a different address leaving 4 KB of unmapped memory before and after.

This unmapped memory before and after allows for the detection of stack overflows and underflows.

Member Functions

StackMemory Constructs an object.
Initialize Partitions a memory region.
~StackMemory Destroys an object.
Finalize Frees a memory partition.
GetStackBottom Gets the ending address of the allocated memory region.
GetStackSize Gets the size of the allocated memory region.

Class Hierarchy

ADLFireWall::NonCopyable
  nn::fnd::IntrusiveLinkedList
    nn::os::MemoryBlockBase
      nn::os::StackMemory

Revision History

2010/08/18
Initial version.

CONFIDENTIAL