harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Megha Chauhan" <megc...@gmail.com>
Subject [drlvm]Help understanding string literal creation
Date Thu, 10 Apr 2008 02:18:54 GMT
> 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

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message