由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - 请教windows 7 怎么增加堆栈上限
相关主题
为什么会有recursion stack overflow这个问题?NASDAQ match engine is written in Java
关于thread的stackarray allocation in c
How solid it is: c++/c# call Matlab libraryeffective C++里的memory pool 一问:
static variable存在heap还是stack?why do we still use dynamic allocation?
请问一个关于 cost of pointer的问题关于内存泄漏
[合集] 谁给个stack-based allocation 的C++的例子?C++一个string的小问题
请问C++ exception后如何清理function stack上的内存资源?C++ Interview Question
What're the three types of memory allocated for C++ variables?内存分配问题
相关话题的讨论汇总
话题: java话题: stack话题: c++话题: 堆栈话题: os
进入Programming版参与讨论
1 (共1页)
a****r
发帖数: 71
1
跑matlab做DFS,recursion limit可以设到800,再大就直接crash了,请教怎么能调大
点,看到有人可以设到上万。
k**********g
发帖数: 989
2

http://superuser.com/questions/340239/how-to-increase-stack-siz
Also, try to identify where the stack limit overflow is caused by the C/C++
code or Java code, because their stack limits and usage patterns are
completely different. C/C++ code use the OS thread stack directly; Managed
languages such as .NET (C#) and Java had their own abstractions over OS
thread.
MATLAB itself is implemented using a mixture of C/C++ and Java.
For Java code, increase both the Java stack size and the Java heap size. http://stackoverflow.com/questions/4967885/jvm-option-xss-what-does-it-do-exactly
Finally, usage of the stack can be reduced by allocating variables on the
heap instead, i.e. using malloc or new instead of local variables.

【在 a****r 的大作中提到】
: 跑matlab做DFS,recursion limit可以设到800,再大就直接crash了,请教怎么能调大
: 点,看到有人可以设到上万。

1 (共1页)
进入Programming版参与讨论
相关主题
内存分配问题请问一个关于 cost of pointer的问题
a small question about c++ memory allocation[合集] 谁给个stack-based allocation 的C++的例子?
请教关于allocator member function 的问题请问C++ exception后如何清理function stack上的内存资源?
在子函数内开内存,返回主函数指针然后释放空间是不是很糟糕的(转载)What're the three types of memory allocated for C++ variables?
为什么会有recursion stack overflow这个问题?NASDAQ match engine is written in Java
关于thread的stackarray allocation in c
How solid it is: c++/c# call Matlab libraryeffective C++里的memory pool 一问:
static variable存在heap还是stack?why do we still use dynamic allocation?
相关话题的讨论汇总
话题: java话题: stack话题: c++话题: 堆栈话题: os