Skip to content
Snippets Groups Projects
  • Henrik (Grubba) Grubbström's avatar
    b702d851
    Optimizer: Fixed reference underflow in treeopt. · b702d851
    Henrik (Grubba) Grubbström authored
    The reference count for reused nodes needs to be bumped once
    for every occurence...
    
    This bug was triggered at least by the empty loop ==> assignment rules,
    with the effect that the free list in block alloc got corrupted.
    
    Example code that triggered the bug:
    
      int i;
      array a;
      for(; i < sizeof(a); i++)
        ;
    b702d851
    History
    Optimizer: Fixed reference underflow in treeopt.
    Henrik (Grubba) Grubbström authored
    The reference count for reused nodes needs to be bumped once
    for every occurence...
    
    This bug was triggered at least by the empty loop ==> assignment rules,
    with the effect that the free list in block alloc got corrupted.
    
    Example code that triggered the bug:
    
      int i;
      array a;
      for(; i < sizeof(a); i++)
        ;