Re: [rvm-research] RVMThread#run() -- Code not reached after run

Erik Brangs <[email protected]> Wed, 20 Jun 2018 07:20:02 +0200
Newsgroups gmane.comp.java.jikes.rvm.devel
Message-ID <[email protected]>
Hi,

On 20.06.2018 01:27, Khaled Z Mahmoud wrote:
> Is the source code of the JDK included with Jikes source ? Can that also be changed ?

Jikes RVM is currently using GNU Classpath as a class library. It's downloaded during the first build.

There are several possibilities to modify GNU Classpath. If you need persistent modifications, the standard way to do this would be to add a new patch to apply during the build of GNU Classpath. See the Ant build file at build/components/classpath.xml for details.

In your specific case, you can refrain from patching and just modify the exit(..) method in VMRuntime from the libraryInterface directory. That method is where the call to System.exit(..) from GNU Classpath will end up. Note that this is the last step in the call chain. The security manager (if present) has already permitted the operation at this point.


Kind regards,

Erik Brangs

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot