Return-Path: Delivered-To: apmail-jakarta-turbine-jcs-dev-archive@www.apache.org Received: (qmail 25264 invoked from network); 24 Sep 2004 23:36:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 24 Sep 2004 23:36:45 -0000 Received: (qmail 34712 invoked by uid 500); 24 Sep 2004 23:38:55 -0000 Delivered-To: apmail-jakarta-turbine-jcs-dev-archive@jakarta.apache.org Received: (qmail 34671 invoked by uid 500); 24 Sep 2004 23:38:54 -0000 Mailing-List: contact turbine-jcs-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Turbine JCS Developers List" Reply-To: "Turbine JCS Developers List" Delivered-To: mailing list turbine-jcs-dev@jakarta.apache.org Received: (qmail 34649 invoked by uid 99); 24 Sep 2004 23:38:53 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from [64.5.60.205] (HELO srv2.redbackinternet.com) (64.5.60.205) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 24 Sep 2004 16:38:52 -0700 Received: from TC1000 (81-86-171-139.dsl.pipex.com [81.86.171.139]) (authenticated (0 bits)) by srv2.redbackinternet.com (8.11.6/8.11.6) with ESMTP id i8ON6mu23498 for ; Fri, 24 Sep 2004 23:06:48 GMT From: "Ben" To: Subject: Elementary error : JCS code using double checked locking? Date: Sat, 25 Sep 2004 00:39:25 +0100 Message-ID: <005301c4a28f$bb26c600$0d01a8c0@TC1000> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2616 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Guys FYI, there's an embarassing error on your example documentation page (http://jakarta.apache.org/turbine/jcs/UsingJCSBasicWeb.html) where the BookVObjManager getInstance() method attempts to save synchronization costs by using "double checked locking" (which of course is incorrect). I hope I am wrong, but it looks like this mistake has been made in the JCS code itself too... Ben --------------------------------------------------------------------- To unsubscribe, e-mail: turbine-jcs-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: turbine-jcs-dev-help@jakarta.apache.org