Re: [rvm-research] Runtime Exception with JMX
Khaled Z Mahmoud <[email protected]> Wed, 27 Jun 2018 19:12:49 -0400
| Newsgroups | gmane.comp.java.jikes.rvm.devel |
|---|---|
| Message-ID | <CAER=_eUHnQ_B5E6z1aPkuTsAHLBh+C_1FmPyf98APVSfg6jB8w@mail.gmail.com> |
Hi,
I imported the latest changes and I am still getting the same error.
My code is inside the RVMThread class inside the yieldpoint method.
if(!t.isSystemThread()) {
ThreadMXBean tMXB = ManagementFactory.getThreadMXBean();
long tid = t.getId();
ThreadInfo tInfo = tMXB.getThreadInfo(tid,0);
if(tInfo!=null) {
tInfo.getBlockedCount();
tInfo.getBlockedTime();
tInfo.getLockedMonitors();
tInfo.getLockedSynchronizers();
}
}
If I do not call JMX, not exception happens.
On Wed, Jun 27, 2018 at 11:45 AM, Erik Brangs <[email protected]> wrote:
> Hi,
>
> On 27.06.2018 10:14, Khaled Z Mahmoud wrote:
> > When I tried the following:
> > ThreadMXBean tMXB = ManagementFactory.getThreadMXBean();
> > long tid = Thread.currentThread().getId();
> > ThreadInfo tInfo = tMXB.getThreadInfo(tid);
> >
> > I get the bellow error:
> >
> > JikesRVM: Failing instruction starting at 0 wasn't in RVM address space
> > JikesRVM: unexpected hardware trap outside of RVM address space - (nil)
> 0x6800810c
> > fault address (nil)
> > eip (nil)
> > eax (T0) (nil)
> > [...]
> > Any ideas ?
>
> It could be a bug in the JMX implementation. I wasn't able to reproduce it
> but I've pushed a fix for another issue. The implementation threw an
> exception for invalid ids instead of returning null.
>
> Are you trying to get information about SystemThreads? Our implementation
> currently doesn't provide any info about them so tInfo would be null in
> that case.
>
>
> 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
> _______________________________________________
> Jikesrvm-researchers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jikesrvm-researchers
>
--
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