weixin_39710951 2020-11-29 10:15 采纳率: 0%
浏览 0

Stabilizing RT through variable allocation in the Heap instead of the Stack

Originally reported on Google Code with ID 439


Correct me if i'm wrong, but i've read that it would be better that huge arrays sould
be allocated in the heap, thanks to 'new' or 'malloc' instead of allocating it in the
stack. Does it makes sense ? Of course, it won't prevent RT from crashing if a 'new'
allocation fails (BAD_ALLOC)...

Anyway, i've already committed the patch below in Default, and would like to know,
if i can patch Branch3 too.

Reported by natureh.510 on 2010-12-27 14:16:35

该提问来源于开源项目:Beep6581/RawTherapee

  • 写回答

6条回答 默认 最新

  • weixin_39710951 2020-11-29 10:15
    关注
    
    I've heard there are some problems on Mac with default compiler options.
    It's wise to substitute 64K elements array, but why doing for only 256????
    .. and why changing static members?
    I don't agree very much.
    

    Reported by ffsup2.it on 2010-12-27 14:44:10

    评论

报告相同问题?