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

Verify ParCompactionManager instance in PCAdjustPointerClosure

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 17
    • None
    • hotspot
    • None
    • gc
    • b13

      `ParCompactionManager::_manager_array` is an array of compaction manager (CM) instances, of size N+1. The first N elements are used by N GC threads, and the last by VM thread. `PCAdjustPointerClosure` uses a CM instance to calculate the new address (after relocation). Since `PCAdjustPointerClosure` is used both by VM and GC threads, the corresponding CM instance has to be used. It would be nice to have some verification in the constructor of `PCAdjustPointerClosure`, instead of failing mysteriously later on.

            ayang Albert Yang
            ayang Albert Yang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: