From: David P G. <gr...@us...> - 2007-10-31 18:39:33
|
jik...@li... wrote on 10/31/2007 11:21:54 AM: > Hello everybody, > > I wrote a few methods, which should be compiled in a special way, and > I want to check the HIR output of those methods. Unfortunately they > get inlined. And even more unfortunately I cannot switch inlining of, > as i am inlinig in the testmethod myself. > > Means: I need inlining mechanisms activated, but want the compiler not > to inline one special method. > > I expected the "@NoInline"-annotation the best way to explicitly > prevent methods from being inlined, but the compiler seems to ignore > it. Did I miss anything? You are right that the NoInline annotation is supposed to do exactly what you want. I have this vauge feeling I saw the same bug about a month ago with the @Uninterruptible annotation. I have a sneaking suspicion that the problem is somehow related to classloaders (annotations are compared for equality not just by name, but by classloader too), but I never tracked it down to be positive that was the problem. --dave |