RFR: 8271461: CompileCommand support for hidden class methods [v2]

Jie Fu jiefu at openjdk.java.net
Fri Jul 30 23:18:28 UTC 2021


On Fri, 30 Jul 2021 18:27:46 GMT, Ioi Lam <iklam at openjdk.org> wrote:

> The names depend on the order of class loading and resolution of Lambda expressions. If you have a multi-threaded program, the order will not be deterministic.
> 
> So while your solution will work on limited cases, I don't think it solves the general problem.

I disagree the solution only works on limited cases since the hidden class names actually won't change for most of my debugging and performance analysis.

Given a hidden class name, the CompileCommand should work with that name after this patch.

If the hidden class name changes from run to run, it's really hard to debug and analyze.
But that's another thing, not the bug of CompileCommand implementation for hidden class.
CompileCommand won't work if the class name is incorrect, not only for hidden classes, but also for user defined classes.
Thanks.

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

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


More information about the hotspot-compiler-dev mailing list