Atomic::cmpxchg_ptr code duplication
Christian.Thalinger at Sun.COM
Thu Apr 2 07:06:38 PDT 2009
On Thu, 2009-04-02 at 09:54 -0400, Paul Hohensee wrote:
> If the platform-dependent versions are assembly code templates, then
> it's likely at some point that the C++ compiler(s) didn't inline
> using your suggested code. I haven't looked in awhile, but I'm pretty
> sure there
> are some places that use your style of code and others that don't for
> because of that.
Hmm, not sure I understand. AFAIK it makes no difference for inlining
in what header file the inline is defined, as long as both are included
and the compiler (preprocessor) finds it. Or do you mean something
different by "assembly code templates", like .il files?
More information about the hotspot-dev