lkml.org 
[lkml]   [2004]   [Feb]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [BUG] get_unmapped_area() change -> non booting machine


On Thu, 12 Feb 2004, Dave McCracken wrote:
>
> Hmm... would it work to just do something like 'if the previous vma is
> grow-up then allocate from the top of the hole'? It'd eliminate the need
> for a hard limit and should pretty much stay out of the way of BSS.

Well, the _common_ case at least for the loader is that the "top of the
hole" is actually the stack. So the above would _really_ suck, and crash
pretty much immediately ;)

It would also cause the strange behaviour that we'd start allocating the
virtual memory areas in "reverse order", ie we'd start at the top and grow
down.

So I don't think that's a very good approach.

This is why special cases get complex: they end up feeding yet more
special cases.

Linus
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2009-11-18 23:46    [W:0.062 / U:0.096 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site