Re: [rvm-research] How to modify standard library?

Robin Garner <[email protected]>
Newsgroups gmane.comp.java.jikes.rvm.devel
Message-ID <[email protected]>
Hi Nathan,

Classpath doesn't get built every time you build Jikes RVM - generally 
it's done first time you do a build, and from then on the RVM build just 
pulls in the classpath jar file.

Getting round this can be a bit of a pain, because the automatic 
classpath build assumes you either take a pre-built classpath.jar file 
or you build from the downloaded sources.

The simplest solution is probably to take a copy of String.java and put 
it in libraryInterface/GNUClasspath/LGPL/src/java/lang/.  This should 
get compiled by build.xml and then injected into the classpath.jar that 
is copied from the classpath build (the ant target "package-classpath").

There may still be some oddnesses with java.lang.String because it's 
somewhat special --- if the above doesn't work, and you actually need to 
modify String before it gets compiled into classpath.jar, the easiest 
thing to do is to add a patch to the patch set in 
build/components/patches/ - these get applied to the unzipped classpath 
source before it is built.  You can then force a classpath rebuild by 
incrementing classpath.patchlevel in build/components/classpath.xml.

cheers,
Robin

On 27/02/15 12:35, Nathan Ricci wrote:
>     I've been trying to modify java.lang.String to do an experiment, but
> I'm at a bit of a loss as to how that ends up built. I tried to modify
> <jikesrvm-base>/classpath/97.2p12/classpath/java/lang/String.java, but
> that changes there don't seem to actually be incorporated when I run the
> rvm.  I tried removing every .jar and .class file I could find and
> building with real-clean to make sure everything was regenerated, but
> that did not work.  How is the classpath actually built, and where does
> the rvm look to find the compiled classes?
>
>              --Nathan Ricci
>                Tufts University
>
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming The Go Parallel Website, sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for all
> things parallel software development, from weekly thought leadership blogs to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
>
>
>
> _______________________________________________
> Jikesrvm-researchers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jikesrvm-researchers
>


------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.