Re: Possible atomicity violations when composing concurrent collections operations

2012-08-03 Thread Andrew Hughes
- Original Message - > On 8/2/12 11:35 PM, Yu Lin wrote: > >> Finally jdk8-dev is probably the "main" list these days. > >> > > > > Should I post this issue to the mailing list of jdk8-dev? > > Yes. > You probably also want to look at: http://altair.cs.oswego.edu/mailman/listinfo/concu

Re: Possible atomicity violations when composing concurrent collections operations

2012-08-02 Thread Dalibor Topic
On 8/2/12 11:35 PM, Yu Lin wrote: >> Finally jdk8-dev is probably the "main" list these days. >> > > Should I post this issue to the mailing list of jdk8-dev? Yes. -- Oracle Dalibor Topic | Principal Product Manager Phone: +494089091214 | Mobile: +491737185961 Oracle

Re: Possible atomicity violations when composing concurrent collections operations

2012-08-02 Thread Yu Lin
2012/8/2 Phil Race : > On 8/2/2012 11:52 AM, Yu Lin wrote: > > I haven't looked at the rest but I'll comment on that one. > This is deliberate. The tradeoff is all uses being synchronized versus > the small chance that two threads try to create this map at the same > time, which really doesn't matt

Re: Possible atomicity violations when composing concurrent collections operations

2012-08-02 Thread Phil Race
On 8/2/2012 11:52 AM, Yu Lin wrote: My name is Yu Lin. I'm a Ph.D. student in the CS department at UIUC. I'm currently doing research on mining Java concurrent library misuses. I found some uses of concurrent collections in OpenJDK7u may result in potential atomicity violation bugs or harm the pe

Possible atomicity violations when composing concurrent collections operations

2012-08-02 Thread Yu Lin
My name is Yu Lin. I'm a Ph.D. student in the CS department at UIUC. I'm currently doing research on mining Java concurrent library misuses. I found some uses of concurrent collections in OpenJDK7u may result in potential atomicity violation bugs or harm the performance. The code below is a snapsh