This is the mail archive of the cygwin-patches mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Updating cygload for new CYGTLS_PADSIZE


Some of my coworkers ran into mysterious problems when working
with the latest snapshots of the Cygwin DLL, and I discovered that
CYGTLS_PADSIZE recently grew beyond the expectations of the cygload
test utility.  This should fix it:


2006-05-24	Max Kaehn <slothman@electric-cloud.com>

	* winsup.api/cygload.h:  Increase padding size to
	16384 bytes.



Index: cygload.h
===================================================================
RCS file: /cvs/src/src/winsup/testsuite/winsup.api/cygload.h,v
retrieving revision 1.1
diff -u -p -r1.1 cygload.h
--- cygload.h   2 Jan 2006 06:15:58 -0000       1.1
+++ cygload.h   24 May 2006 19:46:21 -0000
@@ -63,10 +63,11 @@ namespace cygwin
     std::vector< char > _backup;
     char *_stackbase, *_end;

-    // gdb reports sizeof(_cygtls) == 3964 at the time of this writing.
+    // gdb reports sizeof(_cygtls) == 4212 at the time of this writing,
+    // and CYGTLS_PADSIZE = 3 * sizeof(_cygtls).
     // This is at the end of the object so it'll be toward the bottom
     // of the stack when it gets declared.
-    char _padding[8192];
+    char _padding[16384];

     static padding *_main;
     static DWORD _mainTID;



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]