Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.1/patches/2229970/?format=api
{ "id": 2229970, "url": "http://patchwork.ozlabs.org/api/1.1/patches/2229970/?format=api", "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/ormrymmt7w.fsf@lxoliva.fsfla.org/", "project": { "id": 17, "url": "http://patchwork.ozlabs.org/api/1.1/projects/17/?format=api", "name": "GNU Compiler Collection", "link_name": "gcc", "list_id": "gcc-patches.gcc.gnu.org", "list_email": "gcc-patches@gcc.gnu.org", "web_url": null, "scm_url": null, "webscm_url": null }, "msgid": "<ormrymmt7w.fsf@lxoliva.fsfla.org>", "date": "2026-04-29T01:49:07", "name": "testsuite: semaphore/try_acquire_until: reorder clock::now calls", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "170c3dd262d4ea7b172f3e9c175dc9dca3ca36e8", "submitter": { "id": 74937, "url": "http://patchwork.ozlabs.org/api/1.1/people/74937/?format=api", "name": "Alexandre Oliva", "email": "oliva@adacore.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/ormrymmt7w.fsf@lxoliva.fsfla.org/mbox/", "series": [ { "id": 501970, "url": "http://patchwork.ozlabs.org/api/1.1/series/501970/?format=api", "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=501970", "date": "2026-04-29T01:49:07", "name": "testsuite: semaphore/try_acquire_until: reorder clock::now calls", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/501970/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2229970/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2229970/checks/", "tags": {}, "headers": { "Return-Path": "<gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "gcc-patches@gcc.gnu.org" ], "Delivered-To": [ "patchwork-incoming@legolas.ozlabs.org", "gcc-patches@gcc.gnu.org" ], "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n secure) header.d=adacore.com header.i=@adacore.com header.a=rsa-sha256\n header.s=google header.b=BmrLcn50;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org\n (client-ip=2620:52:6:3111::32; helo=vm01.sourceware.org;\n envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org;\n receiver=patchwork.ozlabs.org)", "sourceware.org;\n\tdkim=pass (2048-bit key,\n secure) header.d=adacore.com header.i=@adacore.com header.a=rsa-sha256\n header.s=google header.b=BmrLcn50", "sourceware.org; dmarc=pass (p=quarantine dis=none)\n header.from=adacore.com", "sourceware.org; spf=pass smtp.mailfrom=adacore.com", "server2.sourceware.org;\n arc=none smtp.remote-ip=74.125.224.48" ], "Received": [ "from vm01.sourceware.org (vm01.sourceware.org\n [IPv6:2620:52:6:3111::32])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g50c21FNpz1yHX\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 29 Apr 2026 11:49:52 +1000 (AEST)", "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id 278BD4BBC0D2\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 29 Apr 2026 01:49:49 +0000 (GMT)", "from mail-yx1-f48.google.com (mail-yx1-f48.google.com\n [74.125.224.48])\n by sourceware.org (Postfix) with ESMTPS id 448B24BBC08B\n for <gcc-patches@gcc.gnu.org>; Wed, 29 Apr 2026 01:49:22 +0000 (GMT)", "by mail-yx1-f48.google.com with SMTP id\n 956f58d0204a3-65006c99d38so11073042d50.3\n for <gcc-patches@gcc.gnu.org>; Tue, 28 Apr 2026 18:49:22 -0700 (PDT)", "from free.home ([2804:14c:4d1:41a6::2000])\n by smtp.gmail.com with ESMTPSA id\n 00721157ae682-7bd253ce832sm7790797b3.21.2026.04.28.18.49.20\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Tue, 28 Apr 2026 18:49:21 -0700 (PDT)", "from livre (livre.home [172.31.160.2])\n by free.home (8.15.2/8.15.2) with ESMTPS id 63T1n7Mh213616\n (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT);\n Tue, 28 Apr 2026 22:49:08 -0300" ], "DKIM-Filter": [ "OpenDKIM Filter v2.11.0 sourceware.org 278BD4BBC0D2", "OpenDKIM Filter v2.11.0 sourceware.org 448B24BBC08B" ], "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org 448B24BBC08B", "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org 448B24BBC08B", "ARC-Seal": "i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1777427362; cv=none;\n b=vxYR+gunZrEXBPYEL8AUr9zrNo5dMpwLDo18HldICGasM5FRnKRwbWLTuoPRtzF2cqTmiW9eJTksj286PMyaVQiKQQXMeVtSUUG2hCt29Ic3QsSmCyb6CWbgAmt/xEMkk1E3mBilOiDTM/xR70Fda+kU5s7me8FOeGapQ322kig=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1777427362; c=relaxed/simple;\n bh=IqBiAMghWei/lPwfvF8Yn76TD+visVCWF4LImYQediY=;\n h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version;\n b=iYKVnNH9wCvVPu0NqEx388MTPUKdC8oQieIrTvE8gw8QfIQPGTwDYMlma7+rvByevFvYTDlFUJVeYBz4lfx1Ke60oyIikxTDSm0sZ452rmvMhX3fzPNK8xRPGnc9hNMTCZU8rc/5ZqCGUOBLlM2mpag20aN6gELreLdrBHpmpnE=", "ARC-Authentication-Results": "i=1; server2.sourceware.org", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=adacore.com; s=google; t=1777427361; x=1778032161; darn=gcc.gnu.org;\n h=mime-version:user-agent:message-id:date:organization:subject:to\n :from:from:to:cc:subject:date:message-id:reply-to;\n bh=aYnKLdp4oMYVkLHgYEloKxsr8tt3j8bikx03SwFKeg4=;\n b=BmrLcn50MzI3FRmahA7R9EypKvGgBhU8lMnUZd9qEPMCPtZrGdapdXQWguOZ300zGl\n Zp725cZQiWfOctnOjj8hO6MnwxA+1Wtys6ZxGZFOpLJBUGWVHJN6sed0QY6ZfbTkjVeh\n t0dytrfBxLRZqXO22oL9TD+4GH5SwG8+Sc70wRikI9X1dtEgJ+JbI7pVx70XMgB4pg26\n vBkRh+Kihi1lKbIMme4b+eRqVUd5zqjFfZZ5TON5vrrgSITnMRnfu198W3PVj9bLUDFZ\n 4on4s9eUNBkXZjbpSZMVJmFnePQzGsgMcTsVBBJPGl0b6I5QNNDaRnfjHj3QMWTqeukb\n 6gPQ==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1777427361; x=1778032161;\n h=mime-version:user-agent:message-id:date:organization:subject:to\n :from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id\n :reply-to;\n bh=aYnKLdp4oMYVkLHgYEloKxsr8tt3j8bikx03SwFKeg4=;\n b=Usm8W/EvxyNriyyxPkSBCbOizbxfbMyB101of8NAO+bXYoh0g/fnl+8RExSDju3eAp\n S4/TTi+Aqk+ctAdJGsZXZ2Ndi1XflTyjQrATpH44fXBE9jdu3NOhCarpxdYoRYlJ3Blp\n OwzQXVtZkDZFKqwx3viJQxml2vk3M947I/NbTsi+ST9dcaEr8YUIMBTXsHgmJc3QAhwe\n qYo/dtpLN1VVbdhy/M0idxbuzywFreWTJOoDUqRbLjDbMkB7jqdXbLJ5GIn99LRbac9O\n fjcmMZNPSjqWl85rKa6elalqgI1FIt/8fEx7aa9El4HFTBOqa2k5e++36O4BrJ0cPPBW\n J4Mw==", "X-Gm-Message-State": "AOJu0Yxp44qGKDgVenF/Z738nkh0EjQNxusunTqDPKcAoilUAZrkthCm\n 3eqsD2AwtoNAbdmyk48bKApU1B/FsG9J1u3RAWgF3N0GnCVngYQy2gil3pvllt+zT3gn0y3YkgX\n a880=", "X-Gm-Gg": "AeBDies5z6Lm/YisdzurH0euyyix/rt4b7cCCptAd1nAWhQWBCXV4naSisKGg98JucF\n sZQquwd9vne1HsjKs8wlDzUQHGTlxKGPCcC5uNXTSTw4G9TBg/aBsmRmtOPiXyHLrcepat44sUX\n J5SX+XzU+yVVjaJy3xjQqBMWZfp7Jx8VmIeQgyjFe0/wR5cvIx2Quf5kn425IV9Lra/7NNaL9e8\n EE19AEITTPXjn3bNKr98JXB8Wx0jfNJk/wjhTucFTyK/fxDHc4tKABMMbcSZakv8jzU4I3w99Cu\n Vnh115nSi+J5Su3Ah7jT5ARSZWpHBApMA8ukIRnebe4OYjLhYtao9kfvRmwstcpUqNWUMtYDV/g\n klMwy5rzsmn+DL49TApMq+hQUSxLbazp8ozSdQAtVRQ5Oy94//o8Wti7qjsmbYOJla9ovZGcHgN\n SMiKz1yRU7sA==", "X-Received": "by 2002:a05:690c:670d:b0:7ba:f414:cd1d with SMTP id\n 00721157ae682-7bcf51ff300mr57524197b3.18.1777427361518;\n Tue, 28 Apr 2026 18:49:21 -0700 (PDT)", "From": "Alexandre Oliva <oliva@adacore.com>", "To": "gcc-patches@gcc.gnu.org, libstdc++@gcc.gnu.org", "Subject": "[PATCH] testsuite: semaphore/try_acquire_until: reorder clock::now\n calls", "Organization": "Free thinker, does not speak for AdaCore", "Date": "Tue, 28 Apr 2026 22:49:07 -0300", "Message-ID": "<ormrymmt7w.fsf@lxoliva.fsfla.org>", "User-Agent": "Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)", "MIME-Version": "1.0", "Content-Type": "text/plain", "X-Scanned-By": "MIMEDefang 2.84", "X-BeenThere": "gcc-patches@gcc.gnu.org", "X-Mailman-Version": "2.1.30", "Precedence": "list", "List-Id": "Gcc-patches mailing list <gcc-patches.gcc.gnu.org>", "List-Unsubscribe": "<https://gcc.gnu.org/mailman/options/gcc-patches>,\n <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe>", "List-Archive": "<https://gcc.gnu.org/pipermail/gcc-patches/>", "List-Post": "<mailto:gcc-patches@gcc.gnu.org>", "List-Help": "<mailto:gcc-patches-request@gcc.gnu.org?subject=help>", "List-Subscribe": "<https://gcc.gnu.org/mailman/listinfo/gcc-patches>,\n <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe>", "Errors-To": "gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org" }, "content": "Clock calls on VxWorks are slow, so the odds that the consecutive\ncalls of *clock::now() will yield a different result are not\nnegligible. Reordering the calls avoids false positives.\n\nRegstrapped on x86_64-linux-gnu. Also tested on ppc-vx7r2 with gcc-15,\nwith an analogous patch for try_acquire_posix.cc. Ok to install?\n\n\nfor libstdc++-v3/ChangeLog\n\n\t* testsuite/30_threads/semaphore/try_acquire_until.cc\n\t(test01): Reorder calls.\n---\n .../30_threads/semaphore/try_acquire_until.cc | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)", "diff": "diff --git a/libstdc++-v3/testsuite/30_threads/semaphore/try_acquire_until.cc b/libstdc++-v3/testsuite/30_threads/semaphore/try_acquire_until.cc\nindex 44b2b90431a41..dea8c53a5a02f 100644\n--- a/libstdc++-v3/testsuite/30_threads/semaphore/try_acquire_until.cc\n+++ b/libstdc++-v3/testsuite/30_threads/semaphore/try_acquire_until.cc\n@@ -43,8 +43,8 @@ void test01()\n }\n \n {\n- auto const at = std::chrono::system_clock::now() + dur;\n auto const t0 = std::chrono::steady_clock::now();\n+ auto const at = std::chrono::system_clock::now() + dur;\n VERIFY( !s.try_acquire_until(at) );\n auto const diff = std::chrono::steady_clock::now() - t0;\n VERIFY( diff >= dur );\n", "prefixes": [] }