optimized build targets

Chuck Rasbold rasbold at google.com
Thu Jul 1 14:53:59 PDT 2010


Coleen, Vladimir,  thanks for the answers and for jogging my memory.

As a follow-up, with optimized, do either of you see more performance
degradation problems vs. product than is warranted?

I seem to recall some diagnostic JVM code that is under #ifndef PRODUCT
which really should be protected by #ifdef DEBUG.  That is, are there
runtime sanitty checks going on that were really only intended for
debug/fastdebug, but are inadvertently being included in the optimized build
because of a flipped #ifdef?

-- Chuck

On Thu, Jul 1, 2010 at 12:19 PM, Vladimir Kozlov <vladimir.kozlov at oracle.com
> wrote:

> I am using it from time to time. Some logging code (compiler statistic, for
> example) is under #ifndef PRODUCT so you don't need debug VM to get it and
> generated code is the same as product.
>
> Vladimir
>
>
> On 7/1/10 12:06 PM, Chuck Rasbold wrote:
>
>> Does anyone still utilize the "optimized" build target for HotSpot?
>>
>> I used to believe that optimized was nearly identical to product,
>> but with the symbols not stripped out.  I see from optimized.make though,
>> that -DPRODUCT is not defined, and might have guessed that the G_SUFFIX
>> would be set, which it is not.
>>
>> What's the current rationale for these settings?
>>
>> -- Chuck
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/hotspot-dev/attachments/20100701/e95ec232/attachment-0001.html 


More information about the hotspot-dev mailing list