New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[19] Project Loom support #38
Comments
|
https://bugs.openjdk.java.net/browse/JDK-8277131 A new command allows debuggers to test if a thread is a virtual thread. A new modifier on the EventRequest command allows debuggers to restrict thread start and end events to platform threads. The updates to JDI are: A new method in New methods in jdi interface package was removed via :
Now the biggest question is how will debug support new APIs from JDI without moving to Java 19 dependency ? |
|
Some thoughts that came to my mind:
|
Will not favour Reflection if we have other option. |
|
When I see swt binaries fragments, They load based on osgi os, ws and arch filters with Eclipse-PlatformFilter. |
|
@iloveeclipse @SarikaSinha I'm the maintainer of VS Code Java Debugger extension, which uses JDT JDI implementation as the sdk to communicate with the debuggee. Recently I'm also looking into how to enable the virtual threads support in JDT and VS Code Java Debugger.
I don't think this will stop us from adding these new methods to the Eclipse JDI XxxImpls even if we're using JDK 11 JDI interfaces. For example, we could still implement a method One drawback is that we have to use XxxImpl to access these new capabilities instead of interfaces. |
|
Currently I see the usage of com.sun.tools.jdi.ThreadReferenceImpl.isVirtual() at 2 places (apart from example) : I don't see any change done in ThreadStartRequestImpl and ThreadDeathRequestImpl as of early access build 23 of java 19. As the changes are minimal, it can be done by doing the changes in Impl file only as suggested by @testforstephen |
|
@SarikaSinha Yes, this seems feasible. Do you know of anyone working on this? If not, I'm willing to start a PR to implement this on JDT JDI. |
Yes, you can start on this. |
|
I unpinned this issue by mistake ( i thought it was a pop-up and most obvious/natural thing to do is to press x). Pinned it again |
|
JDK 19 is currently in Rampdown Phase One. P1-3 bugs can be currently be fixed so this would be good time to report any issues that you might have with JVM TI, JDWP or JDI before it gets too late in this release. |
|
@AlanBateman Thanks for the update. I'm currently working on getting JDT JDI library to support virtual threads. I already have a draft PR #76, and will try to finish it in the coming weeks. |
|
Main support is done, rest of the issues can be tracked via a separate issue. |
Continuation from https://bugs.eclipse.org/bugs/show_bug.cgi?id=572000.
Probably need to be considered in context of eclipse-jdt/eclipse.jdt#10
Got an update from Alan Bateman:
The text was updated successfully, but these errors were encountered: