[16] RFR(XS): 8252037: Optimized build is broken

Magnus Ihse Bursie magnus.ihse.bursie at oracle.com
Thu Aug 20 10:18:38 UTC 2020


On 2020-08-20 10:57, Kim Barrett wrote:
>> On Aug 19, 2020, at 10:00 AM, Christian Hagedorn <christian.hagedorn at oracle.com> wrote:
>>
>> Hi
>>
>> Please review the following small patch which fixes the broken optimized build:
>> https://bugs.openjdk.java.net/browse/JDK-8252037
>> http://cr.openjdk.java.net/~chagedorn/8252037/webrev.00/
>>
>> There are actually two build issues as shown in the bug description.
>>
>> Thank you!
>>
>> Best regards,
>> Christian
> I think the changes to parallelgc are contrary to the intent of the optimized build [1].  I think the
> bug here is that these counters are being conditionally printed under PRODUCT, but should
> be printed under ASSERT.  That is, 8232686 wasn’t quite right.  I guess nobody has done an
> optimized build in a while.
>
> [1] Quoting myself from a different recent review thread:
> The purpose of "optimized" builds (as explained to me by one of its
> long-time proponents) is to have the performance characteristics of a
> release build (so no extra checks that affect performance or timing),
> but provide additional tools and data (printers, names, &etc) that we
> want to exclude from a release build for reasons of saving space or
> whatever. There's certainly lots of confusion around it though.
It's been a long time, low-priority issue to try and disentangle the 
bunch of  "tweaks" that optimized builds bring, so they can be turned on 
and off individually. This would allow us to scrap optimized builds, 
which often bit-rot since they are seldom used. Unfortunately, the low 
priority of this means that no progress at all has been made for I think 
several years. :-( There is a JBS issue somewhere which outlines what 
kind of work is needed.

/Magnus

>



More information about the hotspot-dev mailing list