Re: cdata finalizer called twice

  • From: Peter Colberg <peter@xxxxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Thu, 13 Nov 2014 13:21:27 -0500

On Thu, Nov 13, 2014 at 10:14:17AM -0500, Peter Colberg wrote:
> and LuaJIT still finalizes some objects twice as described.

It appears this only happens with pointer types.

Objects of this type are finalized exactly once:

  typedef struct _cl_event { void *p; } cl_event;

Objects of either of these types are sporadically finalized twice:

  typedef struct _cl_event *cl_event;
  typedef void *cl_event;

Does this help with localizing the issue?

Thanks,
Peter

Other related posts: