On Wed, 11 May 2022 09:00:17 GMT, Jaikiran Pai <j...@openjdk.org> wrote:

> Can I please get a review of this change that addresses 
> https://bugs.openjdk.java.net/browse/JDK-8286559? 
> 
> The commit here removes the `synchronized` on `mark` and `reset` methods of 
> `InflaterInputStream`. The `mark` method is a no-op method and the `reset` 
> method only always throws a `IOException`. So `synchronized` isn't adding any 
> value here. 
> 
> Additionally, the commit does a minor change to the javadoc of these methods 
> to use `@implNote` to describe what the implementation does. Please let me 
> know if the `@implNote` is unnecessary, in which case, I'll revert that part.
> 
> This change is similar to what was recently done for `FilterInputStream` 
> https://github.com/openjdk/jdk/pull/8309 and `PushbackInputStream` 
> https://github.com/openjdk/jdk/pull/8433
> 
> tier1, tier2 and tier3 tests were run and no related failures were noticed.

This pull request has now been integrated.

Changeset: e4378ab2
Author:    Jaikiran Pai <j...@openjdk.org>
URL:       
https://git.openjdk.java.net/jdk/commit/e4378ab28d46fb1270a2d6b3388838ce790a9fb5
Stats:     6 lines in 1 file changed: 2 ins; 0 del; 4 mod

8286559: Re-examine synchronization of mark and reset methods on 
InflaterInputStream

Reviewed-by: lancea, alanb, bpb

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

PR: https://git.openjdk.java.net/jdk/pull/8649

Reply via email to