On Fri, May 28, 2021 at 12:56 PM cheng dong <qq451954...@gmail.com> wrote:
> to avoid false delete object, we could add some checking code in > markDelete just like what we do with raceenable. > one complicate case is internal pointer, we could recursively mark delete > or mark delete internal pointer by hand ? > This idea has come up many times over the past 10 yrs. The problem comes down to: 1. If we know that the markDelete is doing the delete in a memory safe way, then we also know the life time of the object and can do the job of markDelete automatically. 2. If we don't know that the markDelete is doing the delete in a memory safe way then we lose memory safety. Regards, Jesse -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAAuPoqeeA0rRLPhfbD4A3qpPQZK84sg42vVg9%3DbHCH1RYEmDhg%40mail.gmail.com.