RFR: 8263771: Refactor javaClasses initialization code to isolate dumping code

David Holmes dholmes at openjdk.java.net
Thu Mar 18 21:26:42 UTC 2021


On Thu, 18 Mar 2021 14:30:11 GMT, Lois Foltan <lfoltan at openjdk.org> wrote:

>> This code is not as generic as the naming might make it might appear, you can either have a primitive or a String as this relates to ConstantValue attributes.
>
> I would rather have line #895 check for "if (is_java_primitive(fd->field_type())"  that ensures that future value type support will be handled correctly.

Hi Lois,
This is just a refactoring. If the scope of what constitutes a ConstantValue changes in the future then more will be needed to be done than just change that `if` condition. I would expect the ValueType work to have already hit this if it were a problem. The code in mainline is AFAICS correct and complete at this point in time.
Thanks,
David

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

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


More information about the hotspot-runtime-dev mailing list