pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: [patch] Re: lang/mono/ ... error: too few arguments to function 'mremap'



Takahiro Kambe <taca%back-street.net@localhost> wrote:
> Is it better to disable using mremap(2) on NetBSD?

I'm not sure. It should be easy to translate the flags,
see the appended patch. (just compile-tested, I'm
illiterate in C#)
Otoh, I'm not sure whether it is a good idea to expose
such a platform dependant function to an abstract
environment. (It certainly does not belong into a
"Posix" namespace.) This will only lead to unportable
C## programs. But this was the decision of the mono
authors.

"Blair Sadewitz" <blair.sadewitz%gmail.com@localhost> wrote:
> On NetBSD, I define MREMAP_MAYMOVE to 0.

As said, programs expecting Linux semantics, and
not setting MAYMOVE could assume that the address
doesn't change.

> all of the uses of mremap that I've
> encountered used MREMAP_MAYMOVE

In that case it is a wrapper for C# programs running
in the mono VM. The programs using that call are yet
to be written (well, I hope not...).

best regards
Matthias



Home | Main Index | Thread Index | Old Index