[eigen] alloca on MSVC

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]

I quickly looked into _malloca.

First, MSVC is using it's own threshold for choosing between heap and
stack allocation. It is defined by _ALLOCA_S_MARKER_SIZE which is set
to 1024. We could use _alloca to be able to use Eigen's threshold
(20k) though this function is declared as deprecated. On the other
hand side MSVC is using _alloca internally.

While looking into this, I also stumbled over something strange in
Memory.h. There the definition of ei_aligned_stack_delete contains a
do {} while(0) loop - why?

I am also getting stack corruptions in product_notemporary but
hopefully I can fix that tomorrow, right now I am in a hurry.

- Hauke

Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/