mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 19:36:35 +08:00
A big, hard-coded stack size was used in several places
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1986 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -816,4 +816,7 @@
|
|||||||
with more standard exec() functions, however, because (1) it returns
|
with more standard exec() functions, however, because (1) it returns
|
||||||
and (2) it requires symbol table arguments.
|
and (2) it requires symbol table arguments.
|
||||||
* lib/: Add fileno()
|
* lib/: Add fileno()
|
||||||
|
* examples/ostest: Several of the tests used a big, hard-coded stack size
|
||||||
|
when creating test threads (16Kb stacksize). The stack size should
|
||||||
|
be controlled by the .config file or the OSTest won't work on platforms
|
||||||
|
with memory constraints.
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
<tr align="center" bgcolor="#e4e4e4">
|
<tr align="center" bgcolor="#e4e4e4">
|
||||||
<td>
|
<td>
|
||||||
<h1><big><font color="#3c34ec"><i>NuttX RTOS</i></font></big></h1>
|
<h1><big><font color="#3c34ec"><i>NuttX RTOS</i></font></big></h1>
|
||||||
<p>Last Updated: July 12, 2009</p>
|
<p>Last Updated: July 13, 2009</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
@@ -1489,6 +1489,10 @@ nuttx-0.4.10 2009-xx-xx Gregory Nutt <spudmonkey@racsa.co.cr>
|
|||||||
with more standard exec() functions, however, because (1) it returns
|
with more standard exec() functions, however, because (1) it returns
|
||||||
and (2) it requires symbol table arguments.
|
and (2) it requires symbol table arguments.
|
||||||
* lib/: Add fileno()
|
* lib/: Add fileno()
|
||||||
|
* examples/ostest: Several of the tests used a big, hard-coded stack size
|
||||||
|
when creating test threads (16Kb stacksize). The stack size should
|
||||||
|
be controlled by the .config file or the OSTest won't work on platforms
|
||||||
|
with memory constraints.
|
||||||
|
|
||||||
nuttx-0.4.10 2009-xx-xx Gregory Nutt <spudmonkey@racsa.co.cr>
|
nuttx-0.4.10 2009-xx-xx Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
* examples/ostest/cancel.c
|
* examples/ostest/cancel.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2007-2009 Gregory Nutt. All rights reserved.
|
||||||
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
@@ -131,7 +131,7 @@ static void start_thread(pthread_t *waiter, int cancelable)
|
|||||||
printf("start_thread: pthread_attr_init failed, status=%d\n", status);
|
printf("start_thread: pthread_attr_init failed, status=%d\n", status);
|
||||||
}
|
}
|
||||||
|
|
||||||
status = pthread_attr_setstacksize(&attr, 16384);
|
status = pthread_attr_setstacksize(&attr, STACKSIZE);
|
||||||
if (status != 0)
|
if (status != 0)
|
||||||
{
|
{
|
||||||
printf("start_thread: pthread_attr_setstacksize failed, status=%d\n", status);
|
printf("start_thread: pthread_attr_setstacksize failed, status=%d\n", status);
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
* mqueue.c
|
* mqueue.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2007-2009 Gregory Nutt. All rights reserved.
|
||||||
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
@@ -296,7 +296,7 @@ void mqueue_test(void)
|
|||||||
printf("mqueue_test: pthread_attr_init failed, status=%d\n", status);
|
printf("mqueue_test: pthread_attr_init failed, status=%d\n", status);
|
||||||
}
|
}
|
||||||
|
|
||||||
status = pthread_attr_setstacksize(&attr, 16384);
|
status = pthread_attr_setstacksize(&attr, STACKSIZE);
|
||||||
if (status != 0)
|
if (status != 0)
|
||||||
{
|
{
|
||||||
printf("mqueue_test: pthread_attr_setstacksize failed, status=%d\n", status);
|
printf("mqueue_test: pthread_attr_setstacksize failed, status=%d\n", status);
|
||||||
@@ -332,7 +332,7 @@ void mqueue_test(void)
|
|||||||
printf("mqueue_test: pthread_attr_init failed, status=%d\n", status);
|
printf("mqueue_test: pthread_attr_init failed, status=%d\n", status);
|
||||||
}
|
}
|
||||||
|
|
||||||
status = pthread_attr_setstacksize(&attr, 16384);
|
status = pthread_attr_setstacksize(&attr, STACKSIZE);
|
||||||
if (status != 0)
|
if (status != 0)
|
||||||
{
|
{
|
||||||
printf("mqueue_test: pthread_attr_setstacksize failed, status=%d\n", status);
|
printf("mqueue_test: pthread_attr_setstacksize failed, status=%d\n", status);
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
* examples/ostest/mqueue.c
|
* examples/ostest/mqueue.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2007-2009 Gregory Nutt. All rights reserved.
|
||||||
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
@@ -336,7 +336,7 @@ void timedmqueue_test(void)
|
|||||||
printf("timedmqueue_test: pthread_attr_init failed, status=%d\n", status);
|
printf("timedmqueue_test: pthread_attr_init failed, status=%d\n", status);
|
||||||
}
|
}
|
||||||
|
|
||||||
status = pthread_attr_setstacksize(&attr, 16384);
|
status = pthread_attr_setstacksize(&attr, STACKSIZE);
|
||||||
if (status != 0)
|
if (status != 0)
|
||||||
{
|
{
|
||||||
printf("timedmqueue_test: pthread_attr_setstacksize failed, status=%d\n", status);
|
printf("timedmqueue_test: pthread_attr_setstacksize failed, status=%d\n", status);
|
||||||
@@ -366,7 +366,7 @@ void timedmqueue_test(void)
|
|||||||
printf("timedmqueue_test: pthread_attr_init failed, status=%d\n", status);
|
printf("timedmqueue_test: pthread_attr_init failed, status=%d\n", status);
|
||||||
}
|
}
|
||||||
|
|
||||||
status = pthread_attr_setstacksize(&attr, 16384);
|
status = pthread_attr_setstacksize(&attr, STACKSIZE);
|
||||||
if (status != 0)
|
if (status != 0)
|
||||||
{
|
{
|
||||||
printf("timedmqueue_test: pthread_attr_setstacksize failed, status=%d\n", status);
|
printf("timedmqueue_test: pthread_attr_setstacksize failed, status=%d\n", status);
|
||||||
|
|||||||
Reference in New Issue
Block a user