[ 
https://issues.apache.org/jira/browse/FLINK-31919?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Chesnay Schepler closed FLINK-31919.
------------------------------------
    Resolution: Fixed

master: 50f069ce5b1203df8acd724d804afc33eda8a9d4

> Skip ClosureCleaner if object can be serialized
> -----------------------------------------------
>
>                 Key: FLINK-31919
>                 URL: https://issues.apache.org/jira/browse/FLINK-31919
>             Project: Flink
>          Issue Type: Sub-task
>          Components: API / Core
>            Reporter: Chesnay Schepler
>            Assignee: Chesnay Schepler
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.18.0
>
>
> Given an object the ClosureCleaner currently recursively digs into every 
> non-static/transient field of the given object. This causes a problem on Java 
> 17 because these reflective accesses all need to be explicitly allowed 
> beforehand.
> Instead, we could limit the CC to objects that fail serialization, because if 
> something can be serialized there isn't anything for the CC to do.
> This should allow us to avoid a lot of unnecessary reflection accesses to 
> immutable JDK classes, like Strings/BigDecimals etc etc.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to