From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id je0FOGiVoGNTdAUAWB0awg (envelope-from ) for ; Mon, 19 Dec 2022 11:46:32 -0500 Received: by simark.ca (Postfix, from userid 112) id D6F011E222; Mon, 19 Dec 2022 11:46:32 -0500 (EST) Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=oGds14tH; dkim-atps=neutral X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RDNS_DYNAMIC,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 91CD11E15D for ; Mon, 19 Dec 2022 11:46:32 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 258DA3858C3A for ; Mon, 19 Dec 2022 16:46:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 258DA3858C3A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1671468391; bh=RCTeA+j4gnlVTiJEXooBYHLutYjr51r1USXi7p2vhiI=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=oGds14tH4UtOpTAf5gD1BR3djyo6GvEN6Hh/T6p/FeylVPoCu3yS62dJusr8WOHcE NNZlIbGow1EV/U2h2mvl0my0M13xSLGh2kMlVVXZFVmQs4DBVqiKzq8JKUredYfWXu c3Ub5HI916rqAAxi+wV03fPVdI+BaExQzXiGchag= 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 Content-Transfer-Encoding: 8bit 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: , From: Tom Tromey via Gdb-patches Reply-To: Tom Tromey Errors-To: gdb-patches-bounces+public-inbox=simark.ca@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