-
Bug
-
Resolution: Fixed
-
P4
-
8
-
b147
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8279273 | 8u331 | Prajwal Kumaraswamy | P4 | Resolved | Fixed | b01 |
JDK-8274537 | 8u321 | Prajwal Kumaraswamy | P4 | Resolved | Fixed | b01 |
JDK-8274965 | 8u311 | Prajwal Kumaraswamy | P4 | Closed | Fixed | b31 |
The finalizer on sun.security.ssl.SSLSessionImpl is unnecessary and ineffective in most cases.
The specification for SSLSession does not specify the behavior of the values bound to the SSL session during finalization.
The finalizer in SSLSessionImpl describes removing values from the binding table. Since the table is being collected at the same time as the SSLSessionImpl, there is no reason to remove the values except for a side-effect.
The side-effect of removing values from the binding table is a conditional generation of the unbinding event if the value implements SSLSessionBindingListener. The unbinding event contains a reference to the SSLSessionImpl.
The presence of the finalize method creates extra overhead for garbage collection and delays collection of the related objects.
The finalization is ineffective and should be removed.
The specification for SSLSession does not specify the behavior of the values bound to the SSL session during finalization.
The finalizer in SSLSessionImpl describes removing values from the binding table. Since the table is being collected at the same time as the SSLSessionImpl, there is no reason to remove the values except for a side-effect.
The side-effect of removing values from the binding table is a conditional generation of the unbinding event if the value implements SSLSessionBindingListener. The unbinding event contains a reference to the SSLSessionImpl.
The presence of the finalize method creates extra overhead for garbage collection and delays collection of the related objects.
The finalization is ineffective and should be removed.
- backported by
-
JDK-8274537 SSLSessionImpl finalize overhead
- Resolved
-
JDK-8279273 SSLSessionImpl finalize overhead
- Resolved
-
JDK-8274965 SSLSessionImpl finalize overhead
- Closed