Skip to content

Conversation

@CedricGuillemet
Copy link
Contributor

@CedricGuillemet CedricGuillemet commented Oct 27, 2025

Enable Address sanitizer as pointed by #1557

  • removed perf test from UnitTests
  • Add macOS and Linux sanitizer builds
  • up ndk to v28
  • misc build fixes
  • fix reported memory leaks

@matthargett
Copy link

something I ran into 5 years ago that's still a big challenge: getting ASan to run on Android simulator/device is very very finicky. If you manage to figure it out, it would be a huge help! :D if that's what you get stuck on, then I'd say that getting v8 integration coverage on a non-Android platform could be a good fallback that would likely give the effectively the same feedback loop.

@CedricGuillemet
Copy link
Contributor Author

@matthargett I think you are referring to ASAN images not available and missing .so :)

@CedricGuillemet CedricGuillemet marked this pull request as ready for review November 13, 2025 08:53
@CedricGuillemet CedricGuillemet changed the title enable sanitizers for macOS, Linux and Android Enable sanitizers for macOS, Linux Nov 14, 2025
void Clear() { stackElements.clear(); }
void Clear()
{
stackElements = std::vector<StackElement>(); // deallocate memory

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this a placement new of the existing stack allocation for the object? does it actually safely clear the heap-allocated internal members without introducing a leak?

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