RFR (M): 8144748: Move assembler/macroAssembler inline function definitions to corresponding inline.hpp files

Andrew Haley aph at redhat.com
Mon Dec 7 10:06:29 UTC 2015


On 04/12/15 20:23, Mikael Vidstedt wrote:
> In general, inline functions (apart from trivial ones) should be defined 
> in the inline.hpp file and any .cpp file actually making use of them 
> should include the inline.hpp file instead. 

Why does this rule exist?  I never did see any reason for it, and I've
never seen it in any other project.  I guess it can break circular
header dependency problems in some cases, but that's no reason it
should be a general rule.

Just curious,

Andrew.


More information about the hotspot-compiler-dev mailing list