[9] RFR (XS): 8071787: Don't block inlining when DONT_INLINE_THRESHOLD=0

Vladimir Ivanov vladimir.x.ivanov at oracle.com
Wed Jan 28 17:12:23 UTC 2015


For testing & performance measurements, sometimes it's useful to replace 
block inlining wrappers with trivial reinvokers.

This change extends DONT_INLINE_THRESHOLD in the following manner:
   DONT_INLINE_THRESHOLD = -1: no wrapper
   DONT_INLINE_THRESHOLD =  0: reinvoker
   DONT_INLINE_THRESHOLD >  0: counting wrapper

Before that DONT_INLINE_THRESHOLD=0 meant a counting wrapper which is 
removed on the first invocation. After the change, it's 

Testing: manual, java/lang/invoke

Best regards,
Vladimir Ivanov

More information about the core-libs-dev mailing list