RFR: 8075829: Move CSpaceCounters implementation to cSpaceCounters.cpp
Stefan Karlsson
stefan.karlsson at oracle.com
Wed Mar 25 08:36:00 UTC 2015
On 2015-03-24 17:42, Jesper Wilhelmsson wrote:
> Looks good.
Thanks, Jesper.
StefanK
> /Jesper
>
>
> Stefan Karlsson skrev den 24/3/15 17:33:
>> Hi,
>>
>> Please review this patch to reduce the dependency against
>> space.inline.hpp in
>> cSpaceCounters.hpp.
>>
>> - The update_* functions are not called frequently and doesn't have
>> to be inlined.
>>
>> - The take_sample() function is called as a virtual call, and doesn't
>> need to be
>> inlined.
>>
>> - The change in cSpaceCounters.hpp to include space.hpp instead of
>> space.inline.hpp, causes some files to no longer include
>> space.inline.hpp. If
>> one of these files use the Space class but doesn't include
>> space.inline.hpp we
>> get a compile error stating that block_start is used but never
>> defined, even
>> when the block_start function isn't used from that file. To solve
>> that, the
>> 'inline' keyword is removed from the declaration, but kept at the
>> definition.
>> The compiler will not complain about missing definition of
>> block_start if
>> space.inline.hpp isn't included, but the linker will. The compiler
>> will still be
>> able to inline the function.
>>
>> http://cr.openjdk.java.net/~stefank/8075829/webrev.01/
>> https://bugs.openjdk.java.net/browse/JDK-8075829
>>
>> Thanks,
>> StefanK
More information about the hotspot-gc-dev
mailing list