[m-dev.] MR_GC_MALLOC_ATOMIC?

Julien Fischer juliensf at csse.unimelb.edu.au
Mon Sep 19 17:45:56 AEST 2011


On Mon, 19 Sep 2011, Peter Wang wrote:

> On 2011-09-19, Julien Fischer <juliensf at csse.unimelb.edu.au> wrote:
>>
>> Hi,
>>
>> runtime/mercury.h:214 contains the following:
>>
>>   #define MR_new_object_atomic(type, size, alloc_id, name) \
>>                 ((type *) MR_GC_MALLOC_ATOMIC(size))
>>
>> However, MR_GC_MALLOC_ATOMIC does not appear to be defined anywhere.
>> (The only other reference to it is in the comment directly above this.)
>>
>> Is this supposed to actually to be just GC_MALLOC_ATOMIC?
>
> Yes, see the diff from Sun Aug 20 05:01:25 2006 +0000 below.

Ok.

> We should consider removing --inline-alloc as clearly no one uses it.

Not directly, but it is enabled at -O6.

Julien.
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at csse.unimelb.edu.au
Administrative Queries: owner-mercury-developers at csse.unimelb.edu.au
Subscriptions:          mercury-developers-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the developers mailing list