Skip to content

fix: freeze registries and restore failed root state - #3993

Open
chaokunyang wants to merge 169 commits into
apache:mainfrom
chaokunyang:root-lifecycle-policy
Open

fix: freeze registries and restore failed root state#3993
chaokunyang wants to merge 169 commits into
apache:mainfrom
chaokunyang:root-lifecycle-policy

Conversation

@chaokunyang

@chaokunyang chaokunyang commented Aug 29, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • freeze each runtime registry when its first root serialization or deserialization starts, including failed roots
  • keep native lazy type discovery and serializer or metadata completion available after the explicit registration boundary closes
  • preserve thread-safe facade ownership and Kotlin/Scala BaseFory support without duplicate lifecycle state
  • release root-owned read and write scratch state after failures without changing wire behavior

Validation

  • focused and full runtime test suites pass across the affected languages
  • formatting, lint, cross-language integration, and native/JDK-specific builds pass
  • sequential latest-main A/B validation found no implementation-path performance regression

@chaokunyang
chaokunyang marked this pull request as ready for review August 30, 2026 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants