matthiasblaesing commented on issue #9035:
URL: https://github.com/apache/netbeans/issues/9035#issuecomment-3571829916

   Why don't you run with the current release? The right version would be 
`RELEASE280`. Unless the problem is reproducible in `RELEASE280` it is not 
supported.
   
   For this statement:
   
   > Java 21 changed the behavior of ReferenceQueue.remove(0):
   > Java 17: remove(0) means infinite wait → thread blocks properly → no CPU 
usage
   > Java 21: remove(0) means short timeout/poll → times out frequently → 
creates exceptions in loop → 100% CPU
   
   If this is really the case, it is a JDK bug. From the javadoc of 21 
(https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/ref/ReferenceQueue.html#remove(long)):
   
   >     timeout - If positive, block for up to timeout milliseconds while 
waiting for a reference to be added to this queue. If zero, block indefinitely.
   
   That is also found in the javadocs of 25 with identical wording.
   
   As NetBeans runs on the platform and there are zero reports for this.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to