Hmm. On x86, sometimes gcc will optimize out the alloca() call. This
patch fixes it up nicely. Please apply.
Signed-off-by: Adam Litke <[EMAIL PROTECTED]>
diff --git a/tests/stack_grow_into_huge.c b/tests/stack_grow_into_huge.c
index fc8a030..7112428 100644
--- a/tests/stack_grow_into_huge.c
+++ b/tests/stack_grow_into_huge.c
@@ -49,6 +49,7 @@ void do_child()
{
while (1) {
alloca(16*1024*1024);
+ sleep(0); /* Defeat the gcc optimizer */
}
}
--
Adam Litke - (agl at us.ibm.com)
IBM Linux Technology Center
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Libhugetlbfs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel