[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: devel/jdk status?
From: "Niklas Hallqvist" <niklas@copper.appli.se>
> What needs to be done is very likely to fix the brk(2) syscall to
> return the actual break-value coming from userland in all cases.
snip
> Good start for a kernel hacker wannabe. Send me your proposed fix and
> I'll review and test it for free ;-)
OK, I'll take you up on the review and test for free ;-)
NetBSD did in fact make this change. I've ported their changes over. There
was one thing that I wasn't sure of. NetBSD has a linux_emuldata struct that
contains the cached brk value in addition to some other NetBSD specific
linux emulation data. Since the only thing left in the struct (after I
removed the cruft) was the cached brk value, I considered eliminating the
struct and just caching the value in the proc struct. However, since it may
be likely that some of the NetBSD linux features get ported over in the
future I left the struct.
NOTE: This patch requires userland to be rebuilt or you'll get proc size
mismatch errors from ps(1).
Oh yea, it fixes devel/jdk/1.3-linux with the 8.0 redhat libs as you
suspected. :-)
-Kurt
linux_brk.patch
jdk-1.3-linux.diff