gc.*.gcUntilOld() assumes that full gc always promotes objects to old generation in a generational heap

XMLWordPrintable

    • Type: Sub-task
    • Resolution: Unresolved
    • Priority: P4
    • None
    • Affects Version/s: repo-shenandoah
    • Component/s: hotspot
    • gc
    • Cause Known

      gcUntilOld() in the following classes makes a very strong assumption that full gc's will eventually promote an arbitrary object to the old generation. This assumption may be too strong for some collectors, and should not therefore be needed in all of our tests. Specific collectors that would like to test for this property should continue to rely on that assumption, but other collectors that do not need that property to hold should not need to satisfy that assumption.

      The following test classes are affected:

      gc.TestReferenceRefersTo
      gc.TestRerefenceRefersToDuringConcMark
      gc.TestJNIWeak.TestJNIWeak

      gc.shenandoah.TestReferenceRefersToShenandoah

            Assignee:
            Y. Ramakrishna
            Reporter:
            Y. Ramakrishna
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: