RFR: Here are some Thread cleanup patches

mandy chung mandy.chung at oracle.com
Wed Mar 28 09:33:58 UTC 2018

On 3/28/18 2:37 PM, Peter Levart wrote:
> Hi,
> As far as I think (but please prove me wrong), Stable class is not 
> loaded until someone explicitly asks for it in Java code (referring to 
> Stable type in bytecode like with Stable.class literal or parsing 
> annotations of a field that contains such annotation triggered by Java 
> API for annotations).
> The VM code that parses some annotations like @Stable, 
> @CallerSensitive, @ForceInline, etc... works by matching the Symbol 
> names of annotation classes and doesn't need the to load the 
> annotation class for that. See parse_annotations in 
> classFileParser.cpp...

This is what I understand too.  VM parses the annotation attributes 
directly and no need to load any annotation class.


More information about the core-libs-dev mailing list