Skip to Main Content

Open Source

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

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
265 views