Adapted serviceability agent to changes to code heap