[concurrency-interest] maximum number of
dawidk at mathcs.emory.edu
Fri Jul 8 13:46:54 EDT 2005
Doug Lea wrote:
>> You get an overflow exception when acquiring the 32768th read lock.
> Yes, sorry; the specified value should have been 32767.
> This javadoc will (hopefully) be fixed for Mustang.
Wouldn't it be better to modify the implementation to use unsigned
arithmetic? E.g. using:
if (c<0 && nextc>=0)
as an overflow condition?
More information about the Concurrency-interest