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

IterateThroughHeap crash when primitive field callback enabled

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 7
    • Fix Version/s: hs10
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b14
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description

        A profiler vendor reports a crash using IterateThroughHeap when the primtive field callback enabled.

        The crash is hard to duplicate but the following has observed to crash on windows-i586 about 1 in 50 runs:

        java -mx512m -agentlib:SmallAgent -jar $JDK_HOME/jfc/SwingSet2/SwingSet2.jar

        The test creates an agent thread and invokes IterateOverHeap and IterateThroughHeap in a loop (with a 100ms pause between each iteration). When the crash occurs it typically happens when the counter is <20 which suggests the problem is that the heap iteration is encountering an object that is only partially initialized or an internal object.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  swamyv Swamy Venkataramanappa
                  Reporter:
                  alanb Alan Bateman
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: