G1: G1UpdateRemSetTrackingBeforeRebuild::distribute_marked_bytes accesses partially unloaded klass

XMLWordPrintable

    • gc
    • b26

        For debug purposes G1UpdateRemSetTrackingBeforeRebuild::distribute_marked_bytes() accesses the size of the humongous object it is currently processing.

        In case of marked_bytes == 0, the object is actually dead, and the code should not access the klass any more.

        This currently does not matter because we purge the metaspace for unloaded classes after this code, but still this is ugly.

        Makes code that moves the purging before G1UpdateRemSetTrackingBeforeRebuild crash on some platforms (linux-x86).



              Assignee:
              Thomas Schatzl
              Reporter:
              Thomas Schatzl
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: