+/** Snapshotting calloc implementation for user programs. */
+void * calloc( size_t num, size_t size ){
+ void * earlyReq = HandleEarlyAllocationRequest( size * num );
+ if( earlyReq ) {
+ std::memset( earlyReq, 0, size * num );
+ return earlyReq;
+ }
+ return mspace_calloc( mySpace, num, size );
+}