Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 27957 invoked from network); 17 Oct 2006 12:44:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 17 Oct 2006 12:44:19 -0000 Received: (qmail 864 invoked by uid 500); 17 Oct 2006 12:44:15 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 832 invoked by uid 500); 17 Oct 2006 12:44:15 -0000 Mailing-List: contact harmony-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-dev@incubator.apache.org Received: (qmail 821 invoked by uid 99); 17 Oct 2006 12:44:15 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Oct 2006 05:44:15 -0700 X-ASF-Spam-Status: No, hits=2.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of mike.fursov@gmail.com designates 66.249.92.171 as permitted sender) Received: from [66.249.92.171] (HELO ug-out-1314.google.com) (66.249.92.171) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Oct 2006 05:44:14 -0700 Received: by ug-out-1314.google.com with SMTP id y2so1270985uge for ; Tue, 17 Oct 2006 05:43:53 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=FvUcWk+7IWOa+f87ErsewOLcmX3hc4GWjKfJ3FeP1EtZJlLX7MxQDMaSgj6HPkR6RC1bDDzWrUgwPn+u0RAwDHzqVNfXygtvQsoFRoZqUVjQghXmxmqNtDu5p0FY6FgOH7jkRXj9BXjOzBSEwnsChnITUhs4cfJBoURywbu6l3o= Received: by 10.78.160.2 with SMTP id i2mr9254440hue; Tue, 17 Oct 2006 05:43:52 -0700 (PDT) Received: by 10.78.180.1 with HTTP; Tue, 17 Oct 2006 05:43:51 -0700 (PDT) Message-ID: Date: Tue, 17 Oct 2006 19:43:51 +0700 From: "Mikhail Fursov" To: harmony-dev@incubator.apache.org Subject: Re: [drlvm] the big soup of VM properties (HARMONY-1626) In-Reply-To: <200610120345.07133.gshimansky@gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_56934_11540364.1161089031974" References: <4525EB2E.6020301@pobox.com> <200610120345.07133.gshimansky@gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_56934_11540364.1161089031974 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Is there any progress in this area? Just an interest, because I think that properties refactoring is rather important task. + Does anybody knows the answer on the following question: All JIT settings are VM properties. User can change the behaviour by redefining them. Does it affect TCK certification? On 10/12/06, Gregory Shimansky wrote: > > On Wednesday 11 October 2006 09:41 Mikhail Fursov wrote: > > +1 to Eugueni and Alexey and -1 to use String type in the intercomponent > > interface. + AFAIK the String type is VM internal type only. > > Ok you've convinced me. +1 for const char * > > > On 10/11/06, Alexey Varlamov wrote: > > > 2006/10/11, Evgueni Brevnov : > > > > Gregory, > > > > > > > > My 2cents: > > > > > > > > 1cent) I think we should not integrate property module so tight (by > > > > using StringPool) with VM internals. Let it be independent enough. > > > > 2cent) I also don't think we should pollute StringPool any further. > > > > Instead I would like to see if we can get it smaller.... say by > > > > splitting into two pools whatever... > > > > > > Agreed. Besides properties are used in VM almost solely during init, > > > no performance gain here. So -1 to using Strings for properties. > > > > > > > Evgueni > > > > > > > > On 10/11/06, Gregory Shimansky wrote: > > > > > On Tuesday 10 October 2006 11:36 Geir Magnusson Jr. wrote: > > > > > > Inline > > > > > > > > > > > > Dmitry Yershov wrote: > > > > > > > > > > > > [snip] > > > > > > > > > > > > > VM properties proposal > > > > > > > ====================== > > > > > > > > > > > > > > The general purpose of VM Properties subcomponent is to > > > > > > provide > > > > > > > > > > centralized access to a common properties table. A property is > > > > > > meant > > > > > > > > > > as a pair of and . The properties stored in VM > > > > > > Properties > > > > > > > > > > table represent configuration settings for a separate > component > > > > > > (such > > > > > > > > > > as VMCore, GC, JIT etc) or for the whole system. Another use > case > > > > > > for > > > > > > > > > > the properties is communication between different components. > > > > > > > > > > > > > > Requirements > > > > > > > ============ > > > > > > > > > > > > > > 1) The and are represented as string (i.e. > > > > > > char*). > > > > > > > > > and I propose that on each operation, a copy is made, so that > the > > > > > > caller > > > > > > > > > frees the string that they got or gave. > > > > > > > > > > Hmm... I thought of another type. VM has a String class which > > > > > > represents an > > > > > > > > internal strings implementation. String pointers all refer to the > > > > > same interned const char * memory location so comparing them is > > > > > faster, you > > > > > > just > > > > > > > > compare pointers. > > > > > > > > > > Would it be better to have key and value be String * instead of > const > > > > > > char *? > > > > > > > > It would save memory allocation, copying and comparing and lookup > in > > > > > properties hash table could be done using a pointer. > > > > > > > > > > I don't think it is a very performance critical place, properties > > > > > > aren't > > > > > > > > accessed very often, but at least it may reduce memory footprint > and > > > > > > will > > > > > > > > cause less memory leaks when someone forgets to free a returned > copy. > > > > > > > > > > On the other hand, String storage is global to the whole VM, so > there > > > > > > are tons > > > > > > > > of strings kept inside of it. Lookup inside of a small hash table > > > > > like properties may be much faster than lookup through all the > > > > > strings that > > > > > > VM > > > > > > > > keeps... Hmm now I am not sure I want to suggest this way, just > want > > > > > > it to be > > > > > > > > considered. > > > > > > > > > > -- > > > > > Gregory Shimansky, Intel Middleware Products Division > > > > > > > > > > > --------------------------------------------------------------------- > > > > > Terms of use : http://incubator.apache.org/harmony/mailing.html > > > > > To unsubscribe, e-mail: > harmony-dev-unsubscribe@incubator.apache.org > > > > > For additional commands, e-mail: > > > > > harmony-dev-help@incubator.apache.org > > > > > > > > > --------------------------------------------------------------------- > > > > Terms of use : http://incubator.apache.org/harmony/mailing.html > > > > To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org > > > > For additional commands, e-mail: > harmony-dev-help@incubator.apache.org > > > > > > --------------------------------------------------------------------- > > > Terms of use : http://incubator.apache.org/harmony/mailing.html > > > To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org > > > For additional commands, e-mail: harmony-dev-help@incubator.apache.org > > -- > Gregory Shimansky, Intel Middleware Products Division > > --------------------------------------------------------------------- > Terms of use : http://incubator.apache.org/harmony/mailing.html > To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org > For additional commands, e-mail: harmony-dev-help@incubator.apache.org > > -- Mikhail Fursov ------=_Part_56934_11540364.1161089031974--