Skip to content

Commit

Permalink
parisc: remove _STK_LIM_MAX override
Browse files Browse the repository at this point in the history
There are only a couple of architectures that override _STK_LIM_MAX to
a non-infinity value. This changes the stack allocation semantics in
subtle ways. For example, GNU make changes its stack allocation to the
hard maximum defined by _STK_LIM_MAX. As a results, threads executed
by processes running under make are allocated a stack size of
_STK_LIM_MAX rather than a sensible default value. This causes various
thread stress tests to fail when they can't muster more than about 50
threads.

The attached change implements the default behavior used by the
majority of architectures.

Signed-off-by: John David Anglin <dave.anglin@bell.net>
Reviewed-by: Carlos O'Donell <carlos@systemhalted.org>
Cc: stable@vger.kernel.org # 3.14
Signed-off-by: Helge Deller <deller@gmx.de>
  • Loading branch information
John David Anglin authored and Helge Deller committed May 1, 2014
1 parent 455c6fd commit e0d8898
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion arch/parisc/include/uapi/asm/resource.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#ifndef _ASM_PARISC_RESOURCE_H
#define _ASM_PARISC_RESOURCE_H

#define _STK_LIM_MAX 10 * _STK_LIM
#include <asm-generic/resource.h>

#endif

0 comments on commit e0d8898

Please sign in to comment.