kayws426 / embox

Automatically exported from code.google.com/p/embox
0 stars 1 forks source link

slab misuses memory #596

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. slab_init:385 allocates memory from __heap and not uses it
2. Moreover, it's treated as a start of a memory region to be managed, but 
first allocated page could be not start; or some allocations could occur in 
past 
3. cache_grow:144 allocates from __phymem! And puts that to ptr_to_page, that 
think it from __heap.

What is the expected output? What do you see instead?

Rainbow and ponies are expected =(

Please use labels and text to provide additional information.

Original issue reported on code.google.com by drakon.m...@gmail.com on 4 Apr 2013 at 8:09

GoogleCodeExporter commented 9 years ago
Also, should be fixed page allocator. When I allocate page (from 
cache_grow:144) in newly created page allocator, I get 32th page, but not 2nd.

Original comment by alexkalmuk@gmail.com on 5 Apr 2013 at 10:08