Warnings...

Hello, First, Why do I have this message when I compile (with IRIX 6.5) using TKernel.

cc-1188 CC: WARNING File = /disks/M2000/include/CASCADE/Standard_CString.hxx, Line = 135 The indicated type qualifier is meaningless on cast type.

return HashCode( ConstStandard_Integer HashCodes( Value , Len ) , Upper ) ;

Second, When I start my program, Standard allocate 600 Mb and desallocate just after. Is it really necessary (It produces a System warning...) ??? Thanks

Gilles Debarbouille's picture

> Second, When I start my program, Standard
> allocate 600 Mb and desallocate just after.
> Is it really necessary (It produces a System
> warning...) ??? Thanks

Hi Bob,

There is a bug until the IRIX 6.5 OS on SGI which make a conflict between requested memory by malloc/calloc and mmap with a given base. The first call of mmap is correctly done but the second find an address lower than the base in the middle of the area used by malloc/calloc.

To prevent this bug the preconised solution was to allocate and free a 600Mb zone. the effect is that this range of address can't be used by mmap.

The problem is that malloc or calloc mount the pages in the swap file, so you have to adjust the virtual swap not to trap.

There is also the environment variable CLD_HIGH_SBRK which can be set to modify the size of the allocation. You can also set the variable to zero.

Cordially