snazzy-d / sdc

The Snazzy D Compiler
MIT License
246 stars 55 forks source link

One-shot purge of dirty blocks per region. #358

Open dsm9000 opened 7 months ago

dsm9000 commented 7 months ago

Start of yet another attempt at https://github.com/snazzy-d/sdc/issues/270 .

Proposed purgeDirtyBlocks(uint blocks) purges currently-dirtiest region, wholesale, until at least blocks count of dirty blocks have been purged, or there are none remaining to purge. The actual count of purged dirty blocks (which may exceed the requested count) is returned.

Needs: