On Jul 8, 2012, at 11:06 AM, Nick Rogers wrote:
> I have seen that even when this condition is not met and no memory is
> allocated, the VM keeps growing steadily as seen in Activity Monitor.
> So the only thing contributing to it would be the various ints etc.
Use the 'heap' tool, or Instrumen
On 8 Jul 2012, at 1:06 PM, Nick Rogers wrote:
> But the app is GC enabled (required), so the VM size should reset to some
> level every few seconds, but doesn't.
Revise your mental model of garbage collection. It runs periodically on a
thread and doesn't collect all garbage at every sweep, so y
Hi,
The code is like:
- (void)myMethod
{
.
while (flag) {
UInt32 temp;
. and lot of other ints etc.
if (someCondition == 1) {
UInt8 *buff = (UInt8*)calloc(1, sizeof(aStruct));