wings@lemmy.rimfaxe.net to Lemmy Shitpost@lemmy.world · 1 day agoPray for him in these trying timeslemmy.rimfaxe.netimagemessage-square27fedilinkarrow-up11.12Karrow-down13
arrow-up11.11Karrow-down1imagePray for him in these trying timeslemmy.rimfaxe.netwings@lemmy.rimfaxe.net to Lemmy Shitpost@lemmy.world · 1 day agomessage-square27fedilink
minus-squareSubArcticTundra@lemmy.mllinkfedilinkarrow-up14·23 hours agomalloc(999999999999999999999999999999999)
minus-squareVigorouSchematic@fedinsfw.applinkfedilinkEnglisharrow-up8·23 hours agomalloc(18,446,744,073,709,551,615) ULLONG_MAX from limits.h - so on a 64bit machine size_t = unsigned long long = uint64
minus-squareT. Hex@lemmy.dbzer0.comlinkfedilinkarrow-up6·20 hours agoHow about the equivalent malloc(-1)? Also, it’s cheap to allocate memory if you never write to it. You should follow it up with memset() if you really wanna max out your Resident Set Size 🐏
malloc(999999999999999999999999999999999)
malloc(18,446,744,073,709,551,615)
ULLONG_MAXfromlimits.h- so on a 64bit machinesize_t = unsigned long long = uint64How about the equivalent
malloc(-1)?Also, it’s cheap to allocate memory if you never write to it. You should follow it up with memset() if you really wanna max out your Resident Set Size 🐏