RFR: 8033289: clang: clean up unused function warning
henry.jen at oracle.com
Wed Feb 5 16:56:30 PST 2014
Updated as suggested using #ifdef ASSERT intead, webrev at
I need two reviewers from hotspot team or jdk9 reviewers is good?
On 01/31/2014 01:11 AM, Mikael Gerdin wrote:
> On Thursday 30 January 2014 14.59.35 Henry Jen wrote:
>> Please review the fix that clean up unused function warning produced by
>> clang 3.4.
>> One of those is used only in assert, so I wrapped it in #ifndef PRODUCT.
> 2793 #ifndef PRODUCT
> 2794 // Function only used in assert, which will be disabled with NDEBUG
> 2795 // ??? Somehow NDEBUG is not working, use PRODUCT
> This should be #ifdef ASSERT
> Assertions in hotspot are compiled in when ASSERT is defined. It's a common
> mistake to mix usage of #ifndef PRODUCT and ASSERT.
> We don't use NDEBUG in hotspot, I think you can skip the comment about the
> function being only used in an assert, that's quite common in the vm.
>> I had done a round of jprt along with other clang clean up, which passes
>> all builds target.
More information about the hotspot-dev