Verify ParCompactionManager instance in PCAdjustPointerClosure

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 17
    • Affects Version/s: None
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: