From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mailtransmit04.runbox.com (mailtransmit04.runbox.com [IPv6:2a0c:5a00:149::25]) by sourceware.org (Postfix) with ESMTPS id 9CCE93858D3C for ; Sun, 12 May 2024 21:23:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9CCE93858D3C Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=bothner.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=bothner.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 9CCE93858D3C Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a0c:5a00:149::25 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1715548985; cv=none; b=hv0dP7+jXPJ3fW5kSHv2Uo541+kg4Uuo9QqZk15cF03jNKgDCzVuorishBoSQvkXvR6liqayBSvOcJ05XndL/1ufdxQu26YI8M+AHK0li+B00r70Coh2uFMYYYNeljoA1SzrpTtG4r1Qkmo7XmkzTwcEHs66LZr4LHV0E1tYJfE= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1715548985; c=relaxed/simple; bh=bphM+LYB6eEO2sSbxv4tuXS6oqb5Ler2/PKSV17B+O0=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=v6tsf9GdGAS71YHF0ptsfycc0eQe38z/z+q+GT5LkRS23juw/C21WbegwUKC1vstbQQUlwxhbuwIC7ShKpdfk2Fzgjx/hGWPgJNQe2O9oVuYEKtZyoLfuDosBKZV2Wv7vK3ON7yAw6pFrSZjWB7MCoQt/p8YKed2mvwkgqyGCZ8= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from mailtransmit02.runbox ([10.9.9.162] helo=aibo.runbox.com) by mailtransmit04.runbox.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1s6Ger-00AJzl-De for kawa@sourceware.org; Sun, 12 May 2024 23:23:01 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=bothner.com ; s=selector1; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:To:Subject:MIME-Version:Date:Message-ID; bh=Z9YpI+Zh/XL7eu4OB0i2LfvGyPWKdTLmB7YZaexhF0M=; b=jNAmdkIo3V3xXDQwldi3wbLUps Edb3A5X2pFCGzKGvOYPjMQV20HVqYTuinse2L6c1aBTehK+bmDr3jKe4pyXkAQ/lU5UXnU6o4B1x/ U5OIunMG+yDSznt3ljfqzUCH7Mp2UkfZM7AP3DuoMIBduDl+2wA4gCdz1csoyxVeVPVse9JyZiBlT 4NkUQpBZupZlEfh9wc10dbV36LnQ5P73B1TpGKxqvYPbl2y0bIqP8XKEemTc8IAdPErbt2hO7c7g2 qTnrCzTTNU3mmuzKMX4t2x6GuR5XVsiuBAgwP9Us3Y6PFMis4t6PA29UnYk1v6M3S/NR2iifuGy6t 8LAX8ADw==; Received: from [10.9.9.72] (helo=submission01.runbox) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1s6Gel-0002i7-J0; Sun, 12 May 2024 23:22:55 +0200 Received: by submission01.runbox with esmtpsa [Authenticated ID (524175)] (TLS1.2:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.93) id 1s6GeW-004Pve-W8; Sun, 12 May 2024 23:22:41 +0200 Message-ID: <7c665cc9-9032-447e-b5b7-e564af1f4ed5@bothner.com> Date: Sun, 12 May 2024 14:22:36 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Evaluating definitions from another thread To: Panicz Maciej Godek , kawa References: <9e584c45-8a18-458b-ba2b-0f27450490d7@bothner.com> <7a0d870e-23c0-4e8e-8232-3dc7998e3e73@bothner.com> <4c435a3e-0517-46c5-b541-88f1355dfe4b@bothner.com> Content-Language: en-US From: Per Bothner In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.6 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,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: On 5/12/24 2:08 PM, Panicz Maciej Godek wrote: > I didn't quite understand why the constructor of SharedLocation requires a timestamp, and I passed it (java.lang.System:currentTimeMillis). > Is that OK? No. It is not an actual timestamp - more of a version number. (The fact that 'timestamp' is an int and currentTimeMillis is a long should tell you that currentTimeMillis() is not a suitable value for 'timestamp'.) The timestamp is used to control whether a binding is shared. It's been so long since I wrote this code, I don't remember precisely how it works. You can look at the code. -- --Per Bothner per@bothner.com http://per.bothner.com/