From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=adacore.com Received: by mail-io1-xd32.google.com with SMTP id z144so4977382iof.3 for ; Mon, 19 Dec 2022 08:46:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=RCTeA+j4gnlVTiJEXooBYHLutYjr51r1USXi7p2vhiI=; b=DVnt0T/zWrzPnQ9kt+dY3/g5bpgTmtgVxf4jXSaFnzdglffavVnPo8z9winB3kViXI mhHF6pWljZFH/Jg0O5zPHKZXtEiz1nX4ayatXJwxjbxvQAvyDz9MXRG5N5ZtMEL3aLkk QdqCK8qcmD9PwHK+l1MvoSRdwE+ooT0/CL2jxC4OoiJSOIRg4AZtU3rPqilMjsL1eh2k mC5LkrbUhdfGTbr3sU623vPANc5wz73FUDMJ6Yfh3xlGLD9qkxCRmDII9pLdrkcxK4Jj JcsT9uzT4hgimkSGFtusTDTja2fh1XfqM4iZoNUM9EL6zKRF5OclXCCO/rukTH/S8Qy5 GW1g== 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) From: Tom Tromey 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-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 List-Id: 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