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

Remove unnecessary G1ArchiveAllocator code

XMLWordPrintable

    • gc
    • b19

      The G1ArchiveAllocator is used to provide allocation services during CDS archive dump time.

      The _archive_allocator instance in G1CollectedHeap is always instantiated before and deleted after that dumping process. During actual execution it is always NULL.

      However there are several places which look as follows:

      if (_archive_allocator != NULL) {
        _archive_allocator->do_something;
      }

      In all these cases _archive_allocator is always NULL. Remove this unnecessary code.

            tschatzl Thomas Schatzl
            tschatzl Thomas Schatzl
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: