#1121: system.c trace_mem_block small bug
-----------------------------+----------------------------------------------
 Reporter:  jessevdam        |        Type:  bug   
   Status:  new              |    Priority:  normal
Milestone:                   |   Component:  GC    
  Version:  1.6.0            |    Severity:  medium
 Keywords:  memory stack gc  |        Lang:        
    Patch:                   |    Platform:  all   
-----------------------------+----------------------------------------------
 In system.c trace_mem_block is a small but nasty bug. Which could cause
 difficult to debug errors.

  prefix = mask & buffer_min;

 should become

  prefix = mask & (buffer_min < pmc_min ? buffer_min : pmc_min);

 since the mask is also ditermined like

     const size_t mask       =
         find_common_mask(interp,
                     buffer_min < pmc_min ? buffer_min : pmc_min,
                     buffer_max > pmc_max ? buffer_max : pmc_max);

-- 
Ticket URL: <https://trac.parrot.org/parrot/ticket/1121>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets

Reply via email to