Message from C, C++ talks

July 2019

— In Linux you have Always memory

— By default, you can change a feature

— Try

assert(malloc(1024*1024*1024*1024));

— In C - you don't. Imagine you code stuff with about... 32 kb ram?

— 

Frame contains stack variables, params, return_address, and place for return value(may be)

when u call return, u just "jump" to return_address

— Allocators doesn't work in such way)))

— I specified in Linux

— Mmap called only when u really use memory

— Malloc(max_size_t); doesn't crush

— Linux can't reach memory limit or what?

— If u don't use this memory, linux can't

— No

— You sure?

— If u call malloc, that does not guarantee that allocation done

— Mm