Skip to Main Content

Open Source

Announcement

For appeals, questions and feedback, please email oracle-forums_moderators_us@oracle.com

about enq method of java.util.concurrent.locks.AbstractOueuedSvnchronizer from jdk1.8

user-ualx3Oct 10 2023 — edited Oct 11 2023

I am full of curiosity about the source code of enq method from AbstractOueuedSvnchronizer in jdk1.8:

I think It is unnecessary to new another Instance of Node class, just use the node parameter is ok. And then, return tail.

Just like my code

Comments
Post Details
Added on Oct 10 2023
0 comments
103 views