[Bf-committers] Re: [Bf-blender-cvs] CVS commit: blender/intern/guardedalloc/intern mallocn.c

Kent Mein mein at cs.umn.edu
Mon Feb 27 19:08:08 CET 2006


In reply to Ton Roosendaal (ton at blender.org):

> Hi,
> 
> SGI probably has MAP_ANONYMOUS... can you grep for it in  
> /usr/include/sys/mman.h?
> Might be same for Solaris.
> 
> -Ton-

Solaris has both MAP_ANON and MAP_ANONYMOUS

Kent

> 
> On 27 Feb, 2006, at 16:05, Chris Want wrote:
> 
> >
> >Hi Ton,
> >
> >The first problem was that the compiler didn't like the
> >MAP_ANON symbol in mallocn.c, so at first I created a
> >"#if __sgi" to just call mmap without MAP_ANON flag. Then
> >when I let some irix users test, one of them complained that
> >it crashed on startup with:
> >
> >Mapalloc returns nill: len=524288 in imb_addrectImBuf
> >Segmentation fault (core dumped)
> >
> >So I made Irix use the code in for the platforms that
> >don't have mmap (windows, etc).
> >
> >Chris
> >
> >
> >Ton Roosendaal wrote:
> >>Hi Chris,
> >>The same mmap code is used in imbuf for example, for reading images.   
> >>That is code from the ancient neogeo days, when we only used SGI   
> >>equipment. It always worked fine...
> >>So what did go wrong?
> >>-Ton-
> >>On 24 Feb, 2006, at 15:37, Chris Want wrote:
> >>>hos (Chris Want) 2006/02/24 15:37:24 CET
> >>>
> >>>  Modified files:
> >>>    blender/intern/guardedalloc/intern mallocn.c
> >>>
> >>>  Log:
> >>>  I had to disable mmap altogether for Irix.
> >>>
> >>>  Revision  Changes    Path
> >>>  1.14      +3 -8      blender/intern/guardedalloc/intern/mallocn.c
> >>>      
> >>><http://projects.blender.org/viewcvs/viewcvs.cgi/blender/intern/  
> >>>guardedalloc/intern/mallocn.c.diff?r1=1.13&r2=1.14&cvsroot=bf- 
> >>>blender>
> >>>_______________________________________________
> >>>Bf-blender-cvs mailing list
> >>>Bf-blender-cvs at projects.blender.org
> >>>http://projects.blender.org/mailman/listinfo/bf-blender-cvs
> >>>
> >>>
> >>---------------------------------------------------------------------- 
> >>-- --
> >>Ton Roosendaal  Blender Foundation ton at blender.org   
> >>http://www.blender.org
> >>_______________________________________________
> >>Bf-committers mailing list
> >>Bf-committers at projects.blender.org
> >>http://projects.blender.org/mailman/listinfo/bf-committers
> >
> >_______________________________________________
> >Bf-committers mailing list
> >Bf-committers at projects.blender.org
> >http://projects.blender.org/mailman/listinfo/bf-committers
> >
> >
> ------------------------------------------------------------------------ 
> --
> Ton Roosendaal  Blender Foundation ton at blender.org  
> http://www.blender.org
> 
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at projects.blender.org
> http://projects.blender.org/mailman/listinfo/bf-committers

-- 
mein at cs.umn.edu
http://www.cs.umn.edu/~mein


More information about the Bf-committers mailing list