Skeleton for guarded memory allocation.