Skip to content

Fix Memory Leak Risk of Cpp Target#4330

Open
wangtao9 wants to merge 2 commits intoantlr:devfrom
wangtao9:fix_cpp_leak_risk
Open

Fix Memory Leak Risk of Cpp Target#4330
wangtao9 wants to merge 2 commits intoantlr:devfrom
wangtao9:fix_cpp_leak_risk

Conversation

@wangtao9
Copy link
Contributor

See #4237 for details:

image

@wangtao9 wangtao9 changed the title fix memory leak risk of cpp target Fix Memory Leak Risk of Cpp Target Jun 25, 2023
@kaby76 kaby76 mentioned this pull request Jun 27, 2023
Signed-off-by: wangtao9 <wangtaofighting@163.com>
@wangtao9
Copy link
Contributor Author

That's it, I've rebased the latest dev branch and all checks passed!

Before this fix, there was a risk of a memory leak when threads exited prematurely, which was also reported by the asan (AddressSanitizer) check. This PR fixes the above problem, you can use this example to verify the effect: https://github.com/wangtao9/antlr4-perfopt-test/tree/sanitizer_check

Signed-off-by: wangtao9 <wangtaofighting@163.com>
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.

1 participant