RFR: 8268290: Improve LockFreeQueue<> utility [v3]

Ivan Walulya iwalulya at openjdk.java.net
Fri Jun 25 09:04:07 UTC 2021


On Fri, 25 Jun 2021 02:27:23 GMT, Man Cao <manc at openjdk.org> wrote:

> Minor comments:
> Is it recommended to add SpinPause() in pop()'s while loop body?

I think with a try_pop method, if one needs to have a SpinPause,  they can re-implement the retry-loop with the SpinPause and try_pop instead of having this in a generic pop().

-------------

PR: https://git.openjdk.java.net/jdk/pull/4379


More information about the hotspot-dev mailing list