From patchwork Mon Dec 19 16:45:56 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 55373 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 1DBAA3858439 for ; Mon, 19 Dec 2022 16:46:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1DBAA3858439 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1671468395; bh=RCTeA+j4gnlVTiJEXooBYHLutYjr51r1USXi7p2vhiI=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=c75HQ+VP5mq2Nm7R9BDeIYeadetr00mRzdI30WcYJ0IedSKqqfyejo5Ie3kC1EoXD S7ptpAkwF1K+bPq3/JbTUkmpN/DdK+0wkyGP0g+Krc63u5VDHZGA3MEb0K99WcOFbl J7AkaXGxAdnbXVDr85xBJR7rKVXvljc6AUMD1kr8= X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from mail-io1-xd32.google.com (mail-io1-xd32.google.com [IPv6:2607:f8b0:4864:20::d32]) by sourceware.org (Postfix) with ESMTPS id CBB5F3858D1E for ; Mon, 19 Dec 2022 16:46:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org CBB5F3858D1E Received: by mail-io1-xd32.google.com with SMTP id z144so4977382iof.3 for ; Mon, 19 Dec 2022 08:46:07 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=RCTeA+j4gnlVTiJEXooBYHLutYjr51r1USXi7p2vhiI=; b=4Ca12kKPpP6z77wQQb87/08UUK3+pCYTcxSkN0mEEpPZmyciMhS63Qn31A3EJyuFrY Qbe92+0AhM7XuGYf6wE6x5T1+jJFZu/8/aS9nuwF2SoAR5feO6qXPssih4MSd4vHegbu DzW5OSjU8WjZczBmaoFUaQUuAObGzrO+yCGWuBjbrApT+qe4sNcW1nHXIqT+o4c2jJs7 I8BqN5EdF7OpCgpRLLlVu35caSySsnoSwyPEremHdVRsGLBuaURD31k/iRGYj7w7oY/b i3e2QBszGSeouDiSt02/GBOJYuMy1DOfUJm9G6TQr+fUHtc2J/T9yfb47mTfQJ5nnJJy JU1w== X-Gm-Message-State: ANoB5plWYw8MM0TtmhHUx1C8zmtkdZsUCRkTHAJIhShO77TZKKwxccNL o6Tah6W25VA4AEyYE+XQYx03BVrImYSV/Q9c X-Google-Smtp-Source: AA0mqf77jaaHuh+xsNnBAe0Zk+KK8Cu3ja5owhkzn2q+bX0B+61iEcqXhayeGIKiEILF6X0pfrvlWA== X-Received: by 2002:a5d:9284:0:b0:6df:3b35:4a2d with SMTP id s4-20020a5d9284000000b006df3b354a2dmr21618423iom.16.1671468366963; Mon, 19 Dec 2022 08:46:06 -0800 (PST) Received: from localhost.localdomain (97-122-76-186.hlrn.qwest.net. [97.122.76.186]) by smtp.gmail.com with ESMTPSA id x22-20020a056638027600b00363fe31cf55sm3645787jaq.40.2022.12.19.08.46.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Dec 2022 08:46:06 -0800 (PST) To: gdb-patches@sourceware.org Subject: [PATCH v3 0/2] Write DWARF index cache files in background Date: Mon, 19 Dec 2022 09:45:56 -0700 Message-Id: <20221219164558.378363-1-tromey@adacore.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Tom Tromey via Gdb-patches From: Tom Tromey Reply-To: Tom Tromey Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org Sender: "Gdb-patches" Here's v3 of the patches to write the DWARF index in the background. v2 was here: https://sourceware.org/pipermail/gdb-patches/2022-June/189889.html This hides a user-noticeable pause when the feature is enabled. (Note that, when the feature is used in batch mode, the pause is still seen.) This version of the series fixes a possible race that I found in v2. Essentially, the index-writing background job must be started after all the finalization tasks have started. There's a comment in the code explaining this. Let me know what you think. Tom