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

G1 Service thread register_task can be used after shutdown

XMLWordPrintable

    • gc
    • b24

      There is a race when shutting down the VM, where it is possible to add new tasks to the service thread after it has been shut down. This is not used today, but the upcoming work for concurrent uncommit might trigger this situation.

      The problem is that the tasks already in the task_queue are allocated on stack, and after shutdown those are no longer available. So a new addition will look at stale tasks.

            sjohanss Stefan Johansson
            sjohanss Stefan Johansson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: