Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6315948

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 6
    • 6
    • 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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: