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

Jie Fu jiefu at openjdk.java.net
Fri Aug 6 23:39:33 UTC 2021


On Fri, 6 Aug 2021 09:13:25 GMT, Xin Liu <xliu at openjdk.org> wrote:

>> Jie Fu has updated the pull request incrementally with two additional commits since the last revision:
>> 
>>  - Improve error msg
>>  - Revert changes
>
> hi, Jiefu, 
> 
> I spent some time reading JEP 371: Hidden Classes. it describes a lot of "not discoverable". eg. 
> 
>> A hidden class is not anonymous. It has a name that is available via Class::getName and may be shown in diagnostics (such as the output of java -verbose:class), in JVM TI class loading events, in JFR events, and in stack traces. However, the name has a sufficiently unusual form that it effectively makes the class invisible to all other classes.
> 
> It seems to me that the hidden class purposely uses name mangling to reduce discoverability, hide from programmers. Unless the mangling scheme is well defined, I don't think we can have a maintainable pattern to match them all the time. Yes, regex or wildcard may work, but it needs extra cognitive load to master, doesn't it?

Thanks @navyxliu and @iklam for your approval.

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

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


More information about the hotspot-compiler-dev mailing list