Sunbug 6934356: Vector.writeObject() synchronization risks serialization deadlock
brian.goetz at oracle.com
Tue Jan 11 02:17:22 UTC 2011
While on the subject of serialization deadlocks in core libraries, Amy Williams and Mike Ernst did a paper (also became Amy's masters thesis) back when Mike was at MIT on static detection of deadlocks and they built a tools which found several deadlocks in the JDK collections. Does anyone recall any bugs from this source being fixed?
On Jan 10, 2011, at 2:07 PM, Mike Duigou wrote:
> Hi Neil;
> Thanks for the updates. I have posted both this webrev and the Hashtable counterpart on cr.openjdk.java.net:
> Hashtable : http://cr.openjdk.java.net/~mduigou/6927486.1/webrev/
> Vector : http://cr.openjdk.java.net/~mduigou/6934356.3/webrev/
> I am confused on one point about the license. The copyright line mentions IBM but then the rest of the initial license comment refers to Oracle. To me, from the file text alone, it is not be clear why Oracle would be legally entitled to offer a license to the code. I defer to more lawyerly types to determine what's correct here.
> The changes and testfiles otherwise look OK to me and I can push them as soon as the license question is resolved.
> On Jan 10 2011, at 07:48 , Neil Richards wrote:
>> On 10 January 2011 11:56, Alan Bateman <Alan.Bateman at oracle.com> wrote:
>>> Looks okay to me. One minor comment is that you might want to update
>>> writeObject's description where it currently reads "It just calls the
>>> default writeObject method". A minor nit in the tests is that the date range
>>> should be "2010, 2011," rather than "2010-2011".
>> Apologies for seeming to approach the solution asymptotically.
>> Please find attached a further webrev zip file with modification to
>> the writeObject's javadoc and testcases copyright date range.
>> Please let me know if you find anything further.
>> Unless stated above:
>> IBM email: neil_richards at uk.ibm.com
>> IBM United Kingdom Limited - Registered in England and Wales with number 741598.
>> Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU
More information about the core-libs-dev