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

ASF GitHub Bot updated SPARK-62318:
-----------------------------------
    Labels: pull-request-available  (was: )

> Release the slab of a parse that a kept unread part pins, and make the 
> drop-in's protobuf runtime's class lookup of a message type safe against a 
> change of its class on a free-threaded build
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SPARK-62318
>                 URL: https://issues.apache.org/jira/browse/SPARK-62318
>             Project: Spark
>          Issue Type: Bug
>          Components: Connect
>    Affects Versions: 5.0.0
>            Reporter: Hyukjin Kwon
>            Priority: Major
>              Labels: pull-request-available
>
> - After SPARK-62312, a kept object that holds an unread part of a parse pins 
> its whole 64-node slab: keeping one unread unresolved_function of a 
> 1,000-expression project costs 3.59 KiB per kept object, against 0.71 KiB 
> before.
> - MessageClass::at checks the class generation, then reads the registry later 
> (pbmsg message.rs), so on a Py_GIL_DISABLED build a class change can race 
> between the two.
> - A type's desc.class OnceLock is never refreshed after a class change, so 
> every later read takes the registry lock.
> - The fix also states in docs/compatibility.md what another thread or a 
> signal handler sees of a message during its ParseFromString.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to