Re: CORBA_double on SGI



Boy, that was a long 24 hours ( I forgot ). Anyone with CVS write access care to comment on the overall usefulness of this patch. (It ensures correct padding on 64 bit alignment).

*** BEGIN PATCH ***
--- orig/ORBit-0.5.3/src/orb/allocators.h       Mon Jul 19 16:40:44 1999
+++ ORBit-0.5.3/src/orb/allocators.h    Tue Sep  5 00:21:24 2000
@@ -41,6 +41,11 @@
           the memory block itself */
        ORBit_free_childvals free; /* function pointer to free function */
        gpointer func_data;
+       char padto64bitboundary[8-(
+#ifdef ORBIT_DEBUG
+                                  sizeof(gulong)+
+#endif
+ sizeof(ORBit_free_childvals)+sizeof(gpointer))%8];
 } ORBit_mem_info;

 gpointer ORBit_alloc(size_t block_size,
*** END PATCH ***

Simon Britnell wrote:

generates a SEGV. I have a patch for this which I didn't post because it added unnecessary padding in most cases. I'll clean it up and post it within the next 24 hrs.

Attachment: ORBit-0.5.3-peace3.patch.gz
Description: application/gzip



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