Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-135064

gc: Create a validation mode

    XMLWordPrintable

Details

    Description

      To narrow down issues with the gc, it might be a good idea to do some extra (optional) validation before doing a sweep step, potentially even before the CallDestroyObjects step.

       

      We can for every chunk copy its blackBitmap into an external data structure (in the simplest case, a hashmap from chunk address to bitmap), and clear it afterwards. The, run another non-incremental gc pass (only the marking part). Afterwards, compare the actual black bitset with their stored copies.

       

      If an object is unmarked in actual bitmap, but marked in the copy, that's fine (incremental gc might end up marking more than necessary).

      However, the other way around indicates a bug.

      Attachments

        For Gerrit Dashboard: QTBUG-135064
        # Subject Branch Project Status CR V

        Activity

          People

            diseraluca Luca Di Sera
            fabiankosmale Fabian Kosmale
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There is 1 open Gerrit change