RFR: 8349638: Build libjdwp with SIZE optimization
    Matthias Baesken 
    mbaesken at openjdk.org
       
    Wed Feb 12 07:34:11 UTC 2025
    
    
  
On Tue, 11 Feb 2025 19:00:01 GMT, Chris Plummer <cjplummer at openjdk.org> wrote:
> Just a heads up, there is a known issue with -Os and gcc (-Os turns on -fdeclone-ctor-dtor which causes the problem), especially if LTO is active. Turning more optimization levels to -Os could present a problem if you want to have LTO support for the JDK's native code outside of HotSpot as was discussed elsewhere
Thanks for the heads up. Most  JDK libs are C , only very few contain C++ (I think harfbuzz is an example that comes to mind).   As pointed out,  libjdwp is not among the libs with C++.
Do you have an example of a bug caused by the issue you mention (and is this already documented in the JBS somewhere) ?
-------------
PR Comment: https://git.openjdk.org/jdk/pull/23563#issuecomment-2652871882
    
    
More information about the serviceability-dev
mailing list