mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-04-19 08:09:36 +08:00
Memory allocated on the stack is freed at the function exit, so reduce iteration count to avoid stack overflow
This commit is contained in:
parent
3e59163a24
commit
e51da9c3a8
@ -55,7 +55,7 @@ void check_aligned_new()
|
|||||||
|
|
||||||
void check_aligned_stack_alloc()
|
void check_aligned_stack_alloc()
|
||||||
{
|
{
|
||||||
for(int i = 1; i < 1000; i++)
|
for(int i = 1; i < 400; i++)
|
||||||
{
|
{
|
||||||
ei_declare_aligned_stack_constructed_variable(float,p,i,0);
|
ei_declare_aligned_stack_constructed_variable(float,p,i,0);
|
||||||
VERIFY(size_t(p)%ALIGNMENT==0);
|
VERIFY(size_t(p)%ALIGNMENT==0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user