RFR: 8323807: Async UL: Add a stalling mode to async UL [v2]

Johan Sjölen jsjolen at openjdk.org
Tue Apr 2 12:05:13 UTC 2024


On Thu, 28 Mar 2024 07:00:24 GMT, David Holmes <dholmes at openjdk.org> wrote:

>The overall locking protocol is unclear - the JBS description only uses mutexes not monitors.

The wait/notify capability is used for announcing that more memory is available or that a new message is available. This isn't necessary for the locking protocol in itself, we could also repeatedly take the respective locks and look at the data in order to determine the state of the system. Wait/notify simply allows us to yield the thread in the cases of a full buffer or no messages being available for printing.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/17757#discussion_r1547732250


More information about the hotspot-runtime-dev mailing list