graal icon indicating copy to clipboard operation
graal copied to clipboard

[GR-44559] Finish `ThreadMXBean` implementation for Native Image.

Open fniephaus opened this issue 2 years ago • 6 comments

SubstrateThreadMXBean implements com.sun.management.ThreadMXBean for Native Image and is not fully implemented yet, for example:

https://github.com/oracle/graal/blob/7268f717047f68473e5bff76be666bc609fddcf0/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/jdk/management/SubstrateThreadMXBean.java#L149-L172

To improve JMX support (#4732), some of these methods throwing VMError.unsupportedFeature() will be switched to return reasonable, but empty default values (e.g., new ThreadInfo[0]). While this allows some JMX tools to work, some key functionality of ThreadMXBean is still missing and needs to be implemented.

fniephaus avatar Mar 01 '23 16:03 fniephaus

Will this be in v23 ?

oeresundsgruppen avatar May 25 '23 10:05 oeresundsgruppen

Will this be in v23 ?

@oeresundsgruppen unfortunately no and we still haven't found anyone who has the time to work on this.

fniephaus avatar Jul 09 '23 14:07 fniephaus

@fniephaus I would like to help! Can I pick it up?

smthelusive avatar Jul 11 '23 13:07 smthelusive

I would like to help! Can I pick it up?

Sure, feel free to take a look and let me know if you need any help. :)

fniephaus avatar Jul 11 '23 13:07 fniephaus

Hi @fniephaus! I have created this PR, please take a look when you have time 🙂

smthelusive avatar Dec 04 '23 18:12 smthelusive

Hi @selhagani, I am no longer working on this, please see the comments in the PR.

smthelusive avatar Aug 24 '24 13:08 smthelusive