From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E2807385AE41; Mon, 29 Aug 2022 12:38:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E2807385AE41 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1661776724; bh=TV2DGKMM38izFiMBLZSJwKFfPs6rbiysWRhLz2FJxOs=; h=From:To:Subject:Date:From; b=mrB0lOJLRix4TpDgonTVTu2Umib70oZ6WLRG0hqLxubOByFZ6a+v7bToDyuqiNFoz dc7e3PYaIG+J0Zlhfbpf9dqsHZnILxr/j3L5eDD1WLUelT7Aelb8yHdZjjTYsV4YNj 1xEI9ZL+DLVrRbx6cP+3zTD4iKqHhxbTJTyzEKbA= From: "valera.mironow at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/106772] New: atomic::wait shouldn't touch waiter pool if used platform wait Date: Mon, 29 Aug 2022 12:38:44 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: valera.mironow at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D106772 Bug ID: 106772 Summary: atomic::wait shouldn't touch waiter pool if used platform wait Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: valera.mironow at gmail dot com Target Milestone: --- atomic::wait shouldn't touch waiter pool if used platform wait. Because otherwise it affected by waiter pool bugs. And performance can degrade on machine with many cores, because waiter pool have only 16 cells. Also it makes fetch_add with seq_cst, that can hide synchronization issue=