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

Optimize compiler/uncommontrap/TestDeoptOOM.java test

XMLWordPrintable

    • b08

      In Generational ZGC, especially in Windows Github Actions `hotspot/jtreg/compiler/uncommontrap/TestDeoptOOM.java` test have a tendency to timeout. Most of the time is spent trying to recover from allocation stalls, but the code is purposely triggering OOM exceptions.

      This enhancement proposes rewriting the code which consumes all memory, by reducing the number of OOM recoveries by an order of magnitude. This change should not effect the intent of the test.

      An alternative solution would instrumenting the WhiteboxAPI with the consume all memory functionality. However this would be a much more intrusive change.

            aboldtch Axel Boldt-Christmas
            aboldtch Axel Boldt-Christmas
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: