<!DOCTYPE html><html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body>
    <p>Hi Maria,</p>
    <p>I've created the following bug: <a class="moz-txt-link-freetext" href="https://bugs.openjdk.org/browse/JDK-8369857">https://bugs.openjdk.org/browse/JDK-8369857</a></p>
    <p>Training data beloing to the excluded classes should be removed
      from the AOT cache.</p>
    <p>Thanks</p>
    <p>- Ioi</p>
    <div class="moz-cite-prefix">On 10/9/25 4:06 AM, María Arias de
      Reyna Dominguez wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:CAH4CYDV2M-dj8zjrN3VVE966iGOV5Hr86pd5oG0eEM=iLbscSA@mail.gmail.com">
      
      <div dir="ltr">
        <div>Hi!</div>
        <div><br>
        </div>
        <div>This also happens to MethodTrainingData objects so I guess
          this is either me understanding wrong what "excluded" means or
          a bug on the way the cleanup of excluded elements from AOT
          Cache work.</div>
        <div><br>
        </div>
        <div>
          <div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">
            <div dir="ltr">Cheers!<br>
              María.</div>
          </div>
        </div>
        <br>
      </div>
      <br>
      <div class="gmail_quote gmail_quote_container">
        <div dir="ltr" class="gmail_attr">On Wed, Oct 8, 2025 at 1:00 PM
          María Arias de Reyna Dominguez <<a href="mailto:mariasde@redhat.com" moz-do-not-send="true" class="moz-txt-link-freetext">mariasde@redhat.com</a>>
          wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
          <div dir="ltr">
            <div>Hi!</div>
            <div><br>
            </div>
            <div>I'm working on adding the class name to the
              KlassTrainingData line in the AOT map file: <a href="https://bugs.openjdk.org/browse/JDK-8369418" target="_blank" moz-do-not-send="true" class="moz-txt-link-freetext">https://bugs.openjdk.org/browse/JDK-8369418</a></div>
            <div><br>
            </div>
            <div>I found that some of the KlassTrainingData have no
              InstanceKlass associated to it ( _holder is a null
              pointer). If I follow the logs, it is because that
              KlassTrainingData was excluded from the AOT:</div>
            <div><a href="https://github.com/openjdk/jdk/blob/master/src/hotspot/share/oops/trainingData.cpp#L550-L561" target="_blank" moz-do-not-send="true" class="moz-txt-link-freetext">https://github.com/openjdk/jdk/blob/master/src/hotspot/share/oops/trainingData.cpp#L550-L561</a></div>
            <div><br>
            </div>
            <div>$ cat aot.log* | grep "Cleanup KTD" | head<br>
              [debug][aot,training             ] Cleanup KTD
              org.infinispan.commons.logging.log4j.XmlConfiguration<br>
              [debug][aot,training             ] Cleanup KTD
              org.infinispan.manager.DefaultCacheManager<br>
              [debug][aot,training             ] Cleanup KTD
              org.infinispan.distribution.DistributionInfo<br>
              [debug][aot,training             ] Cleanup KTD
              org.apache.logging.log4j.core.config.Node<br>
              [debug][aot,training             ] Cleanup KTD
              org.infinispan.factories.impl.BasicComponentRegistry<br>
              [debug][aot,training             ] Cleanup KTD
              org.apache.logging.log4j.util.Lazy<br>
              [debug][aot,training             ] Cleanup KTD
              org.infinispan.factories.AnyScopeComponentFactory<br>
              [debug][aot,training             ] Cleanup KTD
              org.infinispan.rest.framework.impl.PathItem<br>
              [debug][aot,training             ] Cleanup KTD
              io.micrometer.core.instrument.ImmutableTag<br>
              [debug][aot,training             ] Cleanup KTD
              org.infinispan.commons.util.ArrayMap$KeySet</div>
            <div><br>
            </div>
            <div>But the KlassTrainingData with the null pointer is
              there, on the AOT Cache (or at least on the AOT Map File
              logger). </div>
            <div><br>
            </div>
            <div>Am I missing something here? If it is excluded, why is
              it on the cache?</div>
            <div><br>
            </div>
            <div>If not, how do we relate this training data to anything
              useful?</div>
            <div><br>
            </div>
            <div>
              <div dir="ltr" class="gmail_signature">
                <div dir="ltr">Cheers!<br>
                  María Arias de Reyna Domínguez<br>
                  Senior Software Engineer<br>
                  She / Her / Hers</div>
              </div>
            </div>
          </div>
        </blockquote>
      </div>
    </blockquote>
  </body>
</html>