stack-size

Python threads stack_size and segfaults

A web crawler script that spawns at most 500 threads and each thread basically requests for certain data served from the remote server, which each server's reply is different in content and size from others. i'm setting stack_size as 756K's for threads threading.stack_size(756*1024) which enables me to have the sufficient number of t...

How to identify if an object should be on the stack or not?

I was looking for a rule of thumb for allocating objects on stack or heap in C++. I have found many discussions here on SO. Many people said, it's about the lifetime of an object. If you need more lifetime than the scope of the function, put it in the heap. That makes perfect sense. But what made me confusing is, many people said, allo...

Can one obtain actual stack size used by a thread in Java after some time of running?

The idea would be to help determine the optimum stack size for a given Java application. One thing that could be done with this information create a range-table of stack sizes which the threads could modify as they exit and which could be dumped periodically and at application exit. EDIT: This is in the context of running on customer...

which language / platform doesn't have a fixed stack size?

does some language or platform not have a fixed size of stack and therefore not easy to overflow? I remember using C on UNIX, the stack was difficult to overflow while back in the days of Win 3.1, the stack was very easy to overflow. ...

How to determine Stack size of a Program in linux?

How does one determine the current stack size of a program in linux? it is said that the stack size of each program will be 8 MB in linux but when you use cat /proc//mmap it shows a different size. Also, how does one determine stack size of associated threads? Since it is said that threads have their own private stack? ...

How to set -Xss in Eclipse?

My problem is that I want to increase the default stack size when running a Java project in Eclipse. I've tried looking for the answer, and it looks like I need to set the -Xss option to a larger number, but I don't know how to access/set this value. I'm on a Windows machine, running Eclipse 3.6.0. How would I set this option? I guess, ...

Set stack size in a makefile?

I know how to set the stack size to unlimited in the command line: ulimit -s unlimited And, in bash, when I set the stack size to unlimited, my code runs and terminates successfully. Can I set the stack size to unlimited (or some specified size) in a makefile (with g++ as the compiler)? If so, how? Note: I can only submit my source ...

Java: Would decreasing the stack size speed up frequent method invocations?

Hello, everyone! Everywhere I keep reading about increasing the JVM stack size (i.e. to allow deeper recursions). But I'm asking myself, would decreasing of the stack size speed up method invocation? Probably my understanding is wrong, but I assume, that the allocation speed of each stack (not only for recursive method calls) depends ...

thread stack size on Windows (Visual C++)

Is there a call to determine the stack size of a running thread? I've been looking in MSDN thread functions documentation, and can't seem to find one. ...

gdb determine stack size, conditional in command list

Dear all! Is it possible to find out the stack size (= number of frames in the stack) in a gdb script and use it as a condition in a command list? (By gdb script I mean a list of commands that can be given to gdb as "gdb --command='gdb_script' executable") And is it possible to have conditions within command lists? I'm looking for some...