PREV UP NEXT StackThreads/MP: version 0.77 User's Guide

4.3: How to Switch between Allocators

On top of two memory allocators described, StackThreads/MP provides a simple layer with which you can easily switch both the underlying allocator and whether the region-based allocator is used. The idea is that once you write a program in such a way that allocates and frees memory using the following primitives, you can experience several memory management mechanisms without changing your program.

  • Changing the Underlying Allocator
  • Changing Region-based Allocator