RFR: ClassicProblem_02_ProducerConsumerProblem - third try [v2]

Aleksey Shipilev shade at openjdk.java.net
Fri Nov 19 12:20:56 UTC 2021


On Thu, 18 Nov 2021 23:17:47 GMT, Michael Mirwaldt <duke at openjdk.java.net> wrote:

>> They are placeholders for code which was left out because it isn't needed for the test in JCStress. However, users of JCStress must not forget to add code there if they want to implement e.g. a queue with a buffer. The solutions in the sample are only the "bones" of the algorithms. The "muscles" are missing. (Excuse my strange metaphor here)
>
> I have noticed just a moment ago that the solutions in the wikipedia article (https://en.wikipedia.org/wiki/Producer%E2%80%93consumer_problem) use undeclared functions to show readers which code was left out. I cannot use undeclared methods because of the compiler and empty methods are more confusing and useless unless they are overridden somewhere on purpose.

Unfortunately, I find these comments confusing. In other words, they bring more problems than the problems they solve. Let's drop them.

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

PR: https://git.openjdk.java.net/jcstress/pull/104


More information about the jcstress-dev mailing list