Author: Stan Eisenstat
Subject: Re: [Cs323] limit
Date: Wednesday, 28 Oct 2020, 07:01:58
> Message Posted By: Unknown > > "The limit is on the total amount of storage in the data > (= globals and static locals), heap (= malloc()-ed), and > stack (= arguments and automatic locals) segments and > applies at ALL times." > > On this limit above that you explained in another response, does this also > applied to freed memory? For example, if we had 10000 bytes of memory (and > 9*SIZE was hypothetically 20000 bytes), and then freed the memory, and > then allocated 15000 bytes, is the 10000 bytes that were initially freed > looked at for the 9*SIZE constraint? No, freed blocks do not count toward the amount of memory in use at any point in time. --Stan-PREV INDEX NEXT