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

Fix Code cache sweeper heuristics for JDK 11

XMLWordPrintable

    • b01

        In JDK-8244660 I fixed the code cache sweeper for JDK 15. The same problem happens in 11 after back porting JDK-8244278: The sweeper doesn't run until the any of the code heaps are at least 90% full.

        The cause are the mostly same:
        1) errors in the heuristic - _last_sweep is reset even when no sweep was done
        2) missing notify of the sweeper thread that continues to sleep indefinitely. Both possibly_enable_sweep and updates of _time_counter are missing a call to notify.

        In 15 and beyond we also can't rely on regular safepoints.

        The fix for 8247775 doesn't apply cleanly on 11. I suggest a minimal fix instead of back porting.

              neliasso Nils Eliasson (Inactive)
              neliasso Nils Eliasson (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: