RFR: 6907252: ZipFileInputStream Not Thread-Safe (original) (raw)
Xueming Shen xueming.shen at oracle.com
Wed Oct 14 15:10:54 UTC 2015
- Previous message: RFR: 6907252: ZipFileInputStream Not Thread-Safe
- Next message: RFR [7] 8133206: "java.lang.OutOfMemoryError: unable to create new native thread" caused by upgrade to zlib 1.2.8
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 10/14/15 6:20 AM, Seán Coffey wrote:
Looking to tighten up access between the java and native level zip library calls. This extra check should ensure that we don't hit SEGV on thread races.
I've also taken the opportunity to make the ZStreamRef address variable volatile. I'm still getting reports of zip crashes in the deflate, deflateslow functions [1] but can't reproduce the failure. Access to the ZStreamRef address variable seems to be synchronized correctly in all calling sites. I'm just be extra sure for possible sharing across multiple threads. bug report : https://bugs.openjdk.java.net/browse/JDK-6907252 webrev : http://cr.openjdk.java.net/~coffeys/webrev.6907252/webrev/ [1] https://bugs.openjdk.java.net/browse/JDK-8028216 looks good for me.
-sherman
- Previous message: RFR: 6907252: ZipFileInputStream Not Thread-Safe
- Next message: RFR [7] 8133206: "java.lang.OutOfMemoryError: unable to create new native thread" caused by upgrade to zlib 1.2.8
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]