Browse Source

Bug 616213 - insufficient stack size for HP-UX on PA-RISC

https://bugzilla.redhat.com/show_bug.cgi?id=616213

Description by Ulf Weltman ([email protected]):
Default stack size is 64K on PA and this is insufficient, ACL
tests crash.  Just set to 256K for all HP-UX.
Noriko Hosoi 15 years ago
parent
commit
be924520b8
1 changed files with 5 additions and 4 deletions
  1. 5 4
      ldap/servers/slapd/slapi-plugin.h

+ 5 - 4
ldap/servers/slapd/slapi-plugin.h

@@ -557,9 +557,8 @@ typedef void (*TaskCallbackFn)(Slapi_Task *task);
  * larger stacksize (256KB) is needed on IRIX due to its 4KB BUFSIZ.
  * larger stacksize (256KB) is needed on IRIX due to its 4KB BUFSIZ.
  * (@ pthread IRIX porting -- 01/11/99)
  * (@ pthread IRIX porting -- 01/11/99)
  *
  *
- * Don't know why HP was defined as follows up until DS6.1x. HP BUFSIZ is 1KB
-	#elif ( defined( hpux ))
-	#define SLAPD_DEFAULT_THREAD_STACKSIZE  262144L
+ * HP-UX on PA-RISC uses 64KB default stack size.  Just set to 256K for all
+ * HP-UX.
  */
  */
 #if ( defined( irix ))
 #if ( defined( irix ))
 #define SLAPD_DEFAULT_THREAD_STACKSIZE  262144L
 #define SLAPD_DEFAULT_THREAD_STACKSIZE  262144L
@@ -567,8 +566,10 @@ typedef void (*TaskCallbackFn)(Slapi_Task *task);
 #define SLAPD_DEFAULT_THREAD_STACKSIZE  262144L
 #define SLAPD_DEFAULT_THREAD_STACKSIZE  262144L
 #elif ( defined ( AIX ))
 #elif ( defined ( AIX ))
 #define SLAPD_DEFAULT_THREAD_STACKSIZE  262144L
 #define SLAPD_DEFAULT_THREAD_STACKSIZE  262144L
-/* All other platforms use the default stack size */
+#elif ( defined ( hpux ))
+#define SLAPD_DEFAULT_THREAD_STACKSIZE  262144L
 #else
 #else
+/* All other platforms use the default stack size */
 #define SLAPD_DEFAULT_THREAD_STACKSIZE  0
 #define SLAPD_DEFAULT_THREAD_STACKSIZE  0
 #endif
 #endif