Re: [patch] ORBit2 allocator problem



Hi Richard,

On Wed, 2002-12-18 at 21:55, Richard Zidlicky wrote:
> Afaics only the lowest bit of the pointer is (ab)used so an alignment
> of 2 should be still sufficient - if not then we have a problem.

	Ah - ok, so we always assume that we'll get memory back from malloc
that is aligned to at least 2 byte boundaries - and for GIOP marshalling
we need it aligned to 8 byte boundaries. The string code uses the bottom
bit of the pointer to flag allocated strings to save a potentially large
header block.

	Possibly you're falling foul of that somehow;

>  	/* the allocation code uses the bottom bit of any pointer */
> -	g_assert (ORBIT_ALIGNOF_CORBA_DOUBLE > 2);
> +	g_assert (ORBIT_ALIGNOF_CORBA_DOUBLE >= 2);
>  
>  	ORBit_option_parse (argc, argv, orbit_supported_options);

	What libc are you using ?

	Regards,

		Michael.

-- 
 mmeeks@gnu.org  <><, Pseudo Engineer, itinerant idiot




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]