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

Khaled Z Mahmoud <[email protected]> Tue, 19 Jun 2018 19:27:39 -0400
Newsgroups gmane.comp.java.jikes.rvm.devel
Message-ID <CAER=_eU6ywd4kRzQWw9Hei+hCjebZnUzqSHLYZb08nC9NfcXxg@mail.gmail.com>
Solved this through installing a SecurityManager that throws an exception
if a thread tries to do System.exit()
I am not sure if there is a better way to do thayt without the overhead of
a security manager.

Is the source code of the JDK included with Jikes source ? Can that also be
changed ?


On Tue, Jun 19, 2018 at 6:39 PM, Khaled Z Mahmoud <[email protected]>
wrote:

> Hi,
>
> In RVMThread#run() The code looks like the following
>
> some code before
> thread.run()
> some code  after
>
> However, for some applications, the "some code after" is never reached. I
> am speculating this is because the code is calling System.exit().
>
> Can I modify System.exit() to throw an exception from the executing thread
> ?
> Thanks
>
> --
> Regards,
> Khaled Mahmoud
>



-- 
Regards,
Khaled Mahmoud

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

_______________________________________________
Jikesrvm-researchers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jikesrvm-researchers