Closed ws909 closed 1 year ago
@octylFractal
1.
IsVirtualThread
, which will be of little to no use, as these libraries don't use JNI themselves. The issue besides reducing parallelism is that these calls won't necessarily just reduce it, but may stall it entirely. If all the Fiber OS threads are waiting on IO or similar, that may block all execution of other virtual threads.Re (3), you should be able to manually wrap these I/O methods in ForkJoinPool.managedBlock(...) in order to avoid starving the virtual thread executor. As the JEP specifies, virtual threads are run using an internal ForkJoinPool
.
@octylFractal Thanks. Apparently, I missed all of it. I read most of the newer JEPs, so I may have come across it a good while ago, but didn't recall that now.
Question
Java is about to have a number of new features integrated, some of which are:
It has been mentioned in previous issues that some of these features (Panama) will require such extensive rewriting of LWJGL, that LWJGL will be transitioned into version 4. However, as several of these have been available as incubator features for a while, and are now transitioning to preview features, new projects utilizing LWJGL will want to take advantage of them. Many existing projects would also benefit from them.
What issues currently exist, that will cause problems with, or prevent projects from, using these new features with LWJGL?
stbi_load_from_memory
instead.I assume I can add more questions once they pop up in my head.