add missing linefeed
pthread: initialize earlier

boost's asio.hpp module init() function was calling pthread_key_create which
tried to manipulate some libc/pthread.cc unitialized objects.

pthread_key_create then returned -ENOMEM so an exception was thrown by boost
causing the loader's premain() function to fail and the boot to loop.

This patch lower the priority of the initialization of the libc/pthread.cc
objects so they are ready when premain is calling the boost module init()
function.

Signed-off-by: Benoit Canet <benoit@irqsave.net>
Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
prio: remove rendundant VMA_LIST_INIT_PRIO

Signed-off-by: Benoit Canet <benoit@irqsave.net>
Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
libc: add missing musl if_indextoname

Debug build was broken by it since boost::asio was used.

Signed-off-by: Benoit Canet <benoit@irqsave.net>
Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
Put RunJava.class in a jar, runjava.jar

We use the RunJava Java class to run Java applications (both java.so
and the "java" CLI command use it). We used to have RunJava.class
uncompressed, in the /java directory, but this caused two problems:

1. Or noticed that having a directory (/java) on the classpath causes
   thousands of stat() calls when Java tries to look for all classes
   in this directory. With a jar, its contents are read only once.

2. The "java" CLI command (java.groovy) didn't work because apparently
   Groovy cannot deal with classes being in the top-level package.

   So this patch moves RunJava into the io.osv package, and put it into a jar
   /java/runjava.jar.

   Note that java.groovy is changed in a separate patch (because it's in
   a different sub-repository....)

Signed-off-by: Nadav Har'El <nyh@cloudius-systems.com>
Add RunJava.jar instead of RunJava.class to boot image

Signed-off-by: Nadav Har'El <nyh@cloudius-systems.com>
Merge pull request #51 from anttikantee/master

cosmetic: add missing linefeed

Signed-off-by: Nadav Har'El <nyh@cloudius-systems.com>