Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Commit c663e21

Browse files
committed
Storable: Need more stack reserve on cygwin also
Same stack quirks as on MSWin32. cygwin64 cannot even do 32, try 40.
1 parent c97bfbe commit c663e21

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

dist/Storable/Storable.xs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,10 @@ typedef struct stcxt {
374374
/* JSON::XS has 512 */
375375
/* sizes computed with stacksize. use some reserve for the croak cleanup. */
376376
#include "stacksize.h"
377-
#ifdef WIN32
377+
/* esp. cygwin64 cannot 32, cygwin32 can */
378+
#if defined(__CYGWIN__) && (PTRSIZE == 8)
379+
# define STACK_RESERVE 128
380+
#elif defined(WIN32)
378381
# define STACK_RESERVE 32
379382
#else
380383
/* 8 should be enough, but some systems, esp. 32bit, need more */

0 commit comments

Comments
 (0)