https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113850

Matteo Italia <matteo at mitalia dot net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #57372|0                           |1
        is obsolete|                            |

--- Comment #3 from Matteo Italia <matteo at mitalia dot net> ---
Created attachment 57391
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57391&action=edit
Proposed patch

(In reply to Eric Botcazou from comment #2)
> Ouch.  Thanks for catching this (possibly auto-completion induced) typo!

The fun part is that I noticed because in our codebase there's a point with the
typical mistake of a timed wait without a predicate to check, so at each
spurious wakeup we ended up sending a network request. A 10 seconds
long-polling turned out to be an almost free-run of HTTP requests (1 every 10
ms) which is not ideal. :-D

Anyhow, I sent my patch to gcc-patches
https://gcc.gnu.org/pipermail/gcc-patches/2024-February/645325.html , let's
hope it gets merged and backported before the next releases.

Reply via email to