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

[lworld] Add template-based testing to Valhalla

XMLWordPrintable

      One of the biggest challenges in project Valhalla is that we don't have any existing code that uses this new language feature. The implementation is only exercised by newly written (or migrated) code. We need better test coverage, especially for the JITs.

      Now that the Template-Based Testing Framework (JDK-8344942) is ready, we should use it to write templated tests for Valhalla. One could start by looking at the existing compiler tests in hotspot/jtreg/compiler/valhalla/inlinetypes/ and templatize some of them to increase coverage. Ideally, even IR-framework based tests that verify that a certain optimization kicks in.

      Even simpler, we need to increase test coverage of the calling convention by generating all kinds of different (small enough) value classes and pass them around via (C1/C2 compiled and interpreted methods). This would have caught JDK-8348547 and similar issues.

            Unassigned Unassigned
            thartmann Tobias Hartmann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: