Arm minipool placement limits adjusted and memory leak fixed
Corrects minipool placement calculations on ARM targets to account for alignment and fixes a memory leak in pool dumping.
This commit addresses issues in the ARM backend related to minipool placement and memory management. A previous change in pool placement calculations was not fully accounted for when inserting forced barriers, potentially leading to incorrect barrier placement. Additionally, a small memory leak in the pool dumping code, where subpools were not properly destructed, has been resolved. The changes ensure more accurate barrier placement by considering pool alignment and fix off-by-one issues, and clean up resources in the minipool dumping routine.
In Details
The ARM backend's minipool placement logic in config/arm/minipool.cc had an issue where forced barrier insertion didn't correctly account for the previous changes in pool placement calculations. This commit refines add_forward_ref to allow for pool alignment when checking if a fix fits. It also corrects create_fix_barrier for off-by-one issues and ensures a suitable insertion point, and place_minipools now correctly accounts for padding and skip instructions before inserting a forced barrier. A memory leak in minipool::dump due to missing subpool destructors is also fixed.