ayush00git opened a new pull request, #4015: URL: https://github.com/apache/fory/pull/4015
## What was the error `MetaStringWriter.reset()` restored each entry's `dynamicWriteStringId` but never truncated `disposeMetaStringBytes`. Since meta string owners re-push themselves on every root serialization of a named type, the list grew by every past root operation (an unbounded leak in long-running processes) and each reset walked the whole history. ## What this PR fixes `reset()` now truncates the list after restoring the ids, so it only ever holds the current root's entries. A regression test asserts the list stays at its baseline size across 100 root serializations. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
