From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-il1-x129.google.com (mail-il1-x129.google.com [IPv6:2607:f8b0:4864:20::129]) by sourceware.org (Postfix) with ESMTPS id 223A2385840F for ; Fri, 24 Feb 2023 18:46:26 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 223A2385840F 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-il1-x129.google.com with SMTP id a1so259952iln.9 for ; Fri, 24 Feb 2023 10:46:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=f+1yHhW7+BLZ2DOE3y8otC0sBn00ku8xe2jRgRMgJLE=; b=MLpVluRIhsT3M6DhCLhZ2kySwXL68izrKz/IvHR1YVEF9qvH63wwNHlMGNwPxgRNVL 0hu5QOp+ayUOKwsHDVtWdT3ba6k/bEWw43DSZjzSq+ds5M2PVS9yOVUDR+iNKkamPMXu 5lPUwGCGKB8KVTowCXtM1s8S7GNnEP4Gy3NBoqC+dyxmGuGy9cYaxqrvvUZMBBQFHJ/4 9CzlE/ekCPAB4HK44YBQWRY2UJSAPjyiiYZOBj4NOj4GMRTmlKV8xUqZ5v82+waR3pOE XBwIDV2BrXX3LQ5j6R+MuvFL7jGPMzLyXOg5JUk0GDcPntQrvDxboRSXcWbwe6Ewjauo DSoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=f+1yHhW7+BLZ2DOE3y8otC0sBn00ku8xe2jRgRMgJLE=; b=OoX2Z58B8GCoJCiHuygx3zSMb/pp8znaXGlqnxSAYxnUhqOxoTzU4vZ3jRF4YCVA2i pGwRe0RqIZaZWApO3Drzh2yF1tKHCfrArKQTE1aK7I+JsXhTK5nGz2STxNNQ6Ir7YmLl AoMAsouOqmoyyr8tyZ8PA7ai5nMFMUFW1SpS4+h04odBTlHpkPD5ahKfs8oCNsZUstqC Z7WwYMguJ8lhzr8KWfh5HdiWZ++xACYtYpWf4TfxMtrJWgGYnqzO+7RDm549MtgpfV8+ HIgKP0eBHGRz4UMKFBvMv8DwyIndULEVMzEoifejkQC8tpM8MJ9uuZfM8tMpkAGfPvWo cJyw== X-Gm-Message-State: AO0yUKUb4mO/2YYZP4Pl4XGZQOXxVh177k/ChSnRjqf0r72zszusRYnC msmgyvSfEJNUUBtnp7IMqk90LMOB+XKeT12Q X-Google-Smtp-Source: AK7set8MKASf/hyRp8yMiJ+kI6bheUbR40WpAsXZrDwVH3KK+PUhxLLqJETSGAsxPUvNABIWe120Rw== X-Received: by 2002:a05:6e02:2186:b0:315:2dc2:9919 with SMTP id j6-20020a056e02218600b003152dc29919mr17388708ila.22.1677264385381; Fri, 24 Feb 2023 10:46:25 -0800 (PST) Received: from murgatroyd (75-166-130-93.hlrn.qwest.net. [75.166.130.93]) by smtp.gmail.com with ESMTPSA id f12-20020a02a80c000000b003a068d00373sm2606626jaj.138.2023.02.24.10.46.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Feb 2023 10:46:24 -0800 (PST) From: Tom Tromey To: Tom Tromey via Gdb-patches Cc: Tom Tromey Subject: Re: [PATCH v3 0/2] Write DWARF index cache files in background References: <20221219164558.378363-1-tromey@adacore.com> X-Attribution: Tom Date: Fri, 24 Feb 2023 11:46:24 -0700 In-Reply-To: <20221219164558.378363-1-tromey@adacore.com> (Tom Tromey via Gdb-patches's message of "Mon, 19 Dec 2022 09:45:56 -0700") Message-ID: <87k006j3zz.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-5.6 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: >>>>> "Tom" == Tom Tromey via Gdb-patches writes: Tom> Here's v3 of the patches to write the DWARF index in the background. Tom> v2 was here: Tom> https://sourceware.org/pipermail/gdb-patches/2022-June/189889.html Tom> This hides a user-noticeable pause when the feature is enabled. (Note Tom> that, when the feature is used in batch mode, the pause is still Tom> seen.) Tom> This version of the series fixes a possible race that I found in v2. Tom> Essentially, the index-writing background job must be started after Tom> all the finalization tasks have started. There's a comment in the Tom> code explaining this. I'm checking this in now. Tom