IterateOverReachableObjects is a no-op if root and stack callbacks are not provided

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 6
    • Affects Version/s: 6
    • Component/s: hotspot
    • None
    • b51
    • generic
    • generic

      The IterateOverReachableObjects functions is specified so that if the heap root callback is NULL then heap roots are not reported. Also if the stack ref callback is NULL then stack references are not reported. This is interpreted in the implementation as "follows" which means that IterateOverReachableObjects(NULL, NULL, object_ref, user_data) is no-op as there are initial objects (roots) pushed to the visit stack. This should be fixed.

            Assignee:
            Alan Bateman
            Reporter:
            Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: