Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 16388 invoked from network); 10 Apr 2008 02:19:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Apr 2008 02:19:25 -0000 Received: (qmail 81918 invoked by uid 500); 10 Apr 2008 02:19:24 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 81882 invoked by uid 500); 10 Apr 2008 02:19:24 -0000 Mailing-List: contact dev-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list dev@harmony.apache.org Received: (qmail 81873 invoked by uid 99); 10 Apr 2008 02:19:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Apr 2008 19:19:24 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of megchau@gmail.com designates 66.249.82.234 as permitted sender) Received: from [66.249.82.234] (HELO wx-out-0506.google.com) (66.249.82.234) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Apr 2008 02:18:43 +0000 Received: by wx-out-0506.google.com with SMTP id s7so2755813wxc.24 for ; Wed, 09 Apr 2008 19:18:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=JG6AR054scckVJ0hlZiMXdCmigUPfseSANPjck/6jV8=; b=ZbuWZYr2vRQNyE99GQFIiQahJ9nXUwgpy7OOnURNfwEITwZiku3YGZourvW1UY1hog7wmGXEcM3qlJIDAXIZLXmxZRHp91m1qUdZuCB/80R2P4UpLirm8gk862L2X6KVbqtQkd9UoVTz8j7DIx+FPyVx83lh6DWFX08OoGjy+YE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=XF/hauNCS6jvyO3P2cPQx4sXNIHgQcm4m109Prih6YM2tpD3rpuyLJpZmUoVgkhcxtfYP3bu2biPcWmgtrupCUluooXXawOUBZ4RIhNK7m4extyXJizCI7MziDtvUhjJnLKINIPYlOClGHGc+2hbkUqO42qJtZlQ2jsvA5ts1+U= Received: by 10.141.23.7 with SMTP id a7mr466016rvj.58.1207793934101; Wed, 09 Apr 2008 19:18:54 -0700 (PDT) Received: by 10.140.188.6 with HTTP; Wed, 9 Apr 2008 19:18:54 -0700 (PDT) Message-ID: <6c3375990804091918h79e44c6cv3358185ec95134e7@mail.gmail.com> Date: Wed, 9 Apr 2008 21:18:54 -0500 From: "Megha Chauhan" To: dev@harmony.apache.org Subject: [drlvm]Help understanding string literal creation In-Reply-To: <6c3375990804091915w64ef0e8fl44c55a2718917eb4@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_26512_16960860.1207793934098" References: <6c3375990804091915w64ef0e8fl44c55a2718917eb4@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_26512_16960860.1207793934098 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline > Hello, > > I am a graduate student at the university of Illinois at chicago,USA. As > part of my research I have modified the String class of harmony JDK. I have > added another character array(value_sample) to the class which keeps a copy > of the value array. Now the problem I am facing is in the case of a string > literal since no constructor for the string class is called explicitly , the > value of value_sample array(which was added by me) is set to null. I have > tried to look into creation of string constants but have not found much > except that it is instantiated by the native code at compile time. I have > looked in to the vm_strings.cpp class and have seen that the VM initialises > the fields for String object in the init_fields method. > I was thinking of adding the new filed I have crested here and recompiling > the code. > Am I on the right track? > Also I would like to know which DLL file holds the code for vm_string.cpp > class and how can I recompile the DLL ? > Your help will be greatly appreciated as I have been struggling with this > issue for more than a month now. > Thanks and Regards > Megha Chauhan ------=_Part_26512_16960860.1207793934098--