lam_stg.h: we now reserve 2 heaps instead of 1 so we only need to call
malloc/free during the setup phase (since malloc/free is expensive).