RFR: 8261954: Dependencies: Improve iteration over class hierarchy under context class

Vladimir Ivanov vlivanov at openjdk.java.net
Fri Feb 19 13:26:42 UTC 2021


On Fri, 19 Feb 2021 12:57:58 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:

> Does the compiler dependencies use the _subklass lists for array classes?

Arrays aren't interesting in the context of CHA (which `Dependencies` implements), so they are handled only because they are encountered during hierarchy traversal under `java.lang.Object`:
  bool is_witness(Klass* k) {
    if (doing_subtype_search()) {
      return Dependencies::is_concrete_klass(k);
    } else if (!k->is_instance_klass()) {
      return false; // no methods to find in an array type
    } else {
      ...

-------------

PR: https://git.openjdk.java.net/jdk/pull/2630


More information about the hotspot-compiler-dev mailing list