wings@lemmy.rimfaxe.net to Lemmy Shitpost@lemmy.world · 19 hours agoPray for him in these trying timeslemmy.rimfaxe.netimagemessage-square22linkfedilinkarrow-up1899arrow-down11
arrow-up1898arrow-down1imagePray for him in these trying timeslemmy.rimfaxe.netwings@lemmy.rimfaxe.net to Lemmy Shitpost@lemmy.world · 19 hours agomessage-square22linkfedilink
minus-squareSubArcticTundra@lemmy.mllinkfedilinkarrow-up11·18 hours agomalloc(999999999999999999999999999999999)
minus-squareVigorouSchematic@fedinsfw.applinkfedilinkEnglisharrow-up7·17 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-up2·14 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 🐏