Re: [patch] ORBit2 allocator problem
- From: Michael Meeks <michael ximian com>
- To: Richard Zidlicky <rz linux-m68k org>
- Cc: orbit <orbit-list gnome org>
- Subject: Re: [patch] ORBit2 allocator problem
- Date: 19 Dec 2002 17:13:20 +0000
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]