[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Libjit] [Dotgnu-libjit] Function cannot return constant
From: |
Alexey Galakhov |
Subject: |
Re: [Libjit] [Dotgnu-libjit] Function cannot return constant |
Date: |
Thu, 28 Feb 2013 00:10:28 +0600 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:10.0.12) Gecko/20130116 Icedove/10.0.12 |
Hi,
On 02/27/2013 07:35 PM, Aleksey Demakov wrote:
> Please check if the attached file fixes the problem.
Yes, it does. Thank you.
> The memory manager is supposed to be pluggable. There might be
> different function node types in different memory managers.
I see. One possible solution is using struct _something_nonexistent *
instead of void *. This ensures that the one and only dirty typecast is
in memory manager structure initialization. I attached the proposed
patch for that.
Regards,
Alex
0001-Ensure-type-safety-in-memory-manager.patch
Description: Text Data