You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The dispatch functions that take Object structs seem to actually get pointers to those Objects, which means the memory can change out from under us if we call register (which may reallocate where the Objects are stored and clobber existing memory).
This issue is not about data getting clobbered (because we should no longer call register mid dispatch function). Rather this is to make it obvious that we can write to the actual Object memory store (it might be that it's not possible to write to the Object if it is not a pointer, only that it's memory can change, in which case the pointer allows us the benefit of being able to update without calling get(id)
The text was updated successfully, but these errors were encountered:
Description
The dispatch functions that take
Object
structs seem to actually get pointers to thoseObject
s, which means the memory can change out from under us if we callregister
(which may reallocate where theObject
s are stored and clobber existing memory).This issue is not about data getting clobbered (because we should no longer call
register
mid dispatch function). Rather this is to make it obvious that we can write to the actualObject
memory store (it might be that it's not possible to write to theObject
if it is not a pointer, only that it's memory can change, in which case the pointer allows us the benefit of being able to update without callingget(id)
The text was updated successfully, but these errors were encountered: