A mechanism is disclosed for storing one or more chunk-specific sets of
executable instructions at one or more predetermined offsets within
chunks of a chunked heap. The mechanism provides for storing a
chunk-specific set of executable instructions within a portion of a
chunk, where the set of executable instructions begins at a predetermined
offset within the range of virtual memory addresses allocated to the
chunk. The set of executable instructions, when executed, is operable to
perform one or more operations that are specific to the chunk.