Return-Path: X-Original-To: apmail-perl-modperl-cvs-archive@www.apache.org Delivered-To: apmail-perl-modperl-cvs-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3EE129059 for ; Wed, 8 Feb 2012 17:47:18 +0000 (UTC) Received: (qmail 19091 invoked by uid 500); 8 Feb 2012 17:47:18 -0000 Delivered-To: apmail-perl-modperl-cvs-archive@perl.apache.org Received: (qmail 19038 invoked by uid 500); 8 Feb 2012 17:47:17 -0000 Mailing-List: contact modperl-cvs-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@perl.apache.org List-Id: Delivered-To: mailing list modperl-cvs@perl.apache.org Received: (qmail 19031 invoked by uid 99); 8 Feb 2012 17:47:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Feb 2012 17:47:17 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Feb 2012 17:47:15 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id E71E22388860; Wed, 8 Feb 2012 17:46:54 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1242010 - /perl/modperl/branches/threading/src/modules/perl/mod_perl.c Date: Wed, 08 Feb 2012 17:46:54 -0000 To: modperl-cvs@perl.apache.org From: torsten@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120208174654.E71E22388860@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: torsten Date: Wed Feb 8 17:46:54 2012 New Revision: 1242010 URL: http://svn.apache.org/viewvc?rev=1242010&view=rev Log: comment added Modified: perl/modperl/branches/threading/src/modules/perl/mod_perl.c Modified: perl/modperl/branches/threading/src/modules/perl/mod_perl.c URL: http://svn.apache.org/viewvc/perl/modperl/branches/threading/src/modules/perl/mod_perl.c?rev=1242010&r1=1242009&r2=1242010&view=diff ============================================================================== --- perl/modperl/branches/threading/src/modules/perl/mod_perl.c (original) +++ perl/modperl/branches/threading/src/modules/perl/mod_perl.c Wed Feb 8 17:46:54 2012 @@ -740,6 +740,14 @@ static int modperl_hook_create_request(r MP_dRCFG; #ifdef USE_ITHREADS + /* XXX: this is necessary to make modperl_interp_pool_select() work + * which is used at runtime only to merge dir-configs by + * modperl_module_config_merge(). + * + * Since most requests won't need it it would be good to add some logic + * (cheaper logic in terms of CPU cycles) to identify those cases and + * avoid the hash operation. + */ MP_TRACE_i(MP_FUNC, "setting userdata MODPERL_R in pool %#lx to %lx", (unsigned long)r->pool, (unsigned long)r); (void)apr_pool_userdata_set((void *)r, "MODPERL_R", NULL, r->pool);