On Sat, 28 Feb 2026 03:54:08 GMT, SendaoYan <[email protected]> wrote:

> > And this bug may cause us further problems. Anyone who tries to use
> > `std::stable_sort` is going to introduce a clang+glibc12 problem. And 
> > turning
> > off deprecation warnings more widely isn't especially appealing.
> 
> If the `std::stable_sort` beening invoked inside jdk, maybe we can disable 
> the depracated warning by "#pragma clang diagnostic ignored", but this make 
> code looks ugly.

The specific case of `std::stable_sort` isn't going to be a problem for
HotSpot (at least), because `get_temporary_buffer` is using the default global
allocator, which we don't allow. But yes, for other parts of the JDK one could
disable the warning that way, perhaps also somehow conditionalizing it for
using glibc12. But yuck! Hopefully we'll just never run into this problem
elsewhere.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/29919#issuecomment-3979217584

Reply via email to