-
Notifications
You must be signed in to change notification settings - Fork 454
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RFC: Introduce m_foreach_allocation
to lean_extern_object
#2507
Comments
I am confused. Why can a user not just call |
Then we assume that foreach routine is only used to mark objects as persistent? |
@SchrodingerZhu Fair point. However, if the external object does contain another lean object, you can use |
Thanks for the RFC. I can see how the current |
Prerequisites
Description
When an external object is marked as persistent, the RC pointer inside the object is recursively updated via
m_foreach
. However, besides the inner objects, the external object may manage other heap components. If that is the case,__lsan_ignore_object
is not applied to such allocations.I think one solution is to introduce another field, namely,
m_foreach_allocation
to the external object class, then we can have something like the following:The text was updated successfully, but these errors were encountered: