On 02/20/2015 04:15 PM, Vladimir Ivanov wrote: >> So we hope for Objects.requireNonNull to be inlined most of the times. >> It would be nice if @ForceInline annotation was accessible outside >> java.lang.invoke package, so methods like requireNonNull could benefit >> from it too. With modules, such platform annotations could be made >> public and put into a package (java.lang.internal) that is not exported >> to the world. > I don't think @ForceInline is the right solution here. > I'd be happy to get rid of it in java.lang.invoke code as well :-)
Vladimir, Can you take a look if java.lang.invoke.* changes look good for you? http://cr.openjdk.java.net/~shade/8073479/webrev.00/ Thanks, -Aleksey.