Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 470F42009DC for ; Tue, 2 May 2017 19:18:28 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 45A30160BAB; Tue, 2 May 2017 17:18:28 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 8B977160B9D for ; Tue, 2 May 2017 19:18:27 +0200 (CEST) Received: (qmail 2440 invoked by uid 500); 2 May 2017 17:18:26 -0000 Mailing-List: contact dev-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list dev@felix.apache.org Received: (qmail 2428 invoked by uid 99); 2 May 2017 17:18:26 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 May 2017 17:18:26 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 0C38BC04EF for ; Tue, 2 May 2017 17:18:26 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.796 X-Spam-Level: X-Spam-Status: No, score=-0.796 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-2.796, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=liferay-com.20150623.gappssmtp.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id cCRe1c_257Iv for ; Tue, 2 May 2017 17:18:24 +0000 (UTC) Received: from mail-pf0-f178.google.com (mail-pf0-f178.google.com [209.85.192.178]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 752365F3BF for ; Tue, 2 May 2017 17:18:24 +0000 (UTC) Received: by mail-pf0-f178.google.com with SMTP id q66so234617pfi.3 for ; Tue, 02 May 2017 10:18:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=liferay-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=V6LX4yyrhAwTbtO51HLMUpE9JmPzRWZIWJvrnDd73ds=; b=KdrbNTRbwbV0Z7vrSXtIpjA2luDk2TIrJO+muxgQhPve+JhXeVvHTAw3MFw0Q4G4hq rhWai1VD+Ht98NGZAoXg6Z2Kefam3xQYzBrsbMn+o+eMTleeEImjwqS+nzfb2eZBEAXh amJ6JOLlsOR7+GhSEMuv+NcWAcXBqxgAUwohv20pCHM1d09nyy58bXWbCTmDI1IiK0Xz /6Jvd5cLQNprUlPBD3Iz5v5MQtfLyLFatI1v1uoSntLbZor/VL5GTB/NyXqobQp05Sy6 KlYvqIT57evVH5R0qBLlg/prBXz9yZkvXzUU7hrDBlShYvL0HzgHGrth9JwhKUl9OJy0 4e+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=V6LX4yyrhAwTbtO51HLMUpE9JmPzRWZIWJvrnDd73ds=; b=FZAFKr/FPqSoXzs0oTurTRRq2Usmcc9VcAQll4T6qD5PCn80XPd3WP6QavWzIpvQ88 /LGWctl7lC1JEkgxmOIMXyhRftgPWoiQjahcR1SHels3s9VBJHaiiKjikdhv+0f5pKKt a7GB+M3bYRKgDdrNCact2BE9hvNmeEhtHWNMn6rvkXB90I7G1lA4TVMvlTpnjnNp17E1 WUEDO8YlI2HiOaTOSiKsT9UD8R01jcMjOkMn87etVNXW6PPf93TvtIuVeYnt+nod+nr8 bRypQE+bvGe2MYGgXrQy6y08E2ia/6obB8F6f0IMTXs3xzEvOEIhmchOtfeiUpyzZlJv XzMQ== X-Gm-Message-State: AN3rC/5v5NaXqnM5Q8XuAfwMu+ilkbQ6jNPwozeDWsa+Mb69MT1UCeCt MsjpY2GlYAgcuX5XZWvtYTX47ivCks2rS8XZHA== X-Received: by 10.99.112.29 with SMTP id l29mr14151900pgc.111.1493745503327; Tue, 02 May 2017 10:18:23 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.166.233 with HTTP; Tue, 2 May 2017 10:18:22 -0700 (PDT) In-Reply-To: References: <97278B99-85D1-4F06-B5BB-D5A1DD9705D5@gmail.com> From: Raymond Auge Date: Tue, 2 May 2017 13:18:22 -0400 Message-ID: Subject: Re: memory visibility of @Reference service references To: Apache Felix Developer List Content-Type: multipart/alternative; boundary=f403045c749c1c7255054e8dba38 archived-at: Tue, 02 May 2017 17:18:28 -0000 --f403045c749c1c7255054e8dba38 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Tue, May 2, 2017 at 1:14 PM, Raymond Auge wrote: > > On Tue, May 2, 2017 at 11:46 AM, Dirk Hogan > wrote: > >> But no similar guarantee applies when another thread hits the >> component, >> > > I believe the discussion boils down to why you believe the above is > possible? > > If SCR has not yet made the component available to other threads (which, > to my knowledge, it only does by registering it as a service to the servi= ce > registry) how can _another_ thread access the component at all? > > I don't even see a way for components within the same DS bundle to > interact with each other other than via the service registry because > @Reference only works through the registry. > Correction, components could interact with each other via the ComponentContext.. but I guess we'd have to know if that's part of your use case. - Ray > > Please, can you explain in more detail what case might allow for the > above? Because I believe the assumption is that it's not currently > possible. Certainly there could be a bug and I'm certain everyone would > want to see that fixed. > > -- > *Raymond Aug=C3=A9* > (@rotty3000) > Senior Software Architect *Liferay, Inc.* > (@Liferay) > Board Member & EEG Co-Chair, OSGi Alliance > (@OSGiAlliance) > --=20 *Raymond Aug=C3=A9* (@rotty3000) Senior Software Architect *Liferay, Inc.* (@Liferay) Board Member & EEG Co-Chair, OSGi Alliance (@OSGiAlliance= ) --f403045c749c1c7255054e8dba38--