Follow-up Comment #19, bug #30766 (project gnustep):

I asked Carlos O'Donnel, the author of the glibc NPTL code for hppa if
there's something wrong in the approach of hiding pthread internals with
opaque types of the same size.  He said:

"Yes, you don't take into account the alignment requirement of the
structure.

The pthread_mutex_t and pthread_cond_t on hppa are __attribute__
((aligned(16))), which means if you embedded them into another
structure they need to be padded out to that alignment. The dummy
structure you use here doesn't match the alignment and may break ABI."

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?30766>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/


_______________________________________________
Bug-gnustep mailing list
Bug-gnustep@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-gnustep

Reply via email to