Skip to content
Snippets Groups Projects
  1. May 31, 2013
  2. Apr 22, 2013
    • Nadav Har'El's avatar
      Add build framework for Java classes and JNI · 448a1d51
      Nadav Har'El authored
      Added build ("make") framework for compiling Java code we want to run in
      OSv (in/with the Java payload), as well as JNI, i.e., OSv-specific C code
      we want to run from the above Java code.
      
      The Java source files in java/src/ are now all compiled during build
      (see java/build.xml for the Ant file doing this compilation) and the
      result is one JAR, build/$mode/java/cloudius.jar (/cloudius.jar in bootfs).
      We can easily change build.xml to create more than one if we want.
      
      As an example of JNI, I used the not-working-yet balloon feature.
      java/src/com/cloudius/balloon/Balloon.java is the class
      com.cloudius.balloon.Balloon which is supposed to have one "native"
      (implemented in C) function giveup(). This function's implementation is
      in java/jni/balloon.c. We get this file to compile to balloon.so (put
      in /usr/lib/jni in the bootfs) by adding java/jni/balloon.so to the
      "jni" list in build.mak.
      
      If you don't know how write the ugly function signature as seen in
      java/jni/balloon.c, you can run "javah com.cloudius.balloon.Balloon"
      to build the empty functions needed for implementing the native functions
      defined in the above class.
      448a1d51
  3. Apr 02, 2013
    • Avi Kivity's avatar
      build: delete targets on error · 4ad1c842
      Avi Kivity authored
      If a target fails to build, it is probably corrupted.  Delete it.
      
      Fixes misbuild after a second make with an incorrect bootfs.manifest.
      4ad1c842
  4. Mar 19, 2013
  5. Jan 30, 2013
  6. Jan 27, 2013
  7. Jan 11, 2013
  8. Dec 28, 2012
  9. Dec 27, 2012
  10. Dec 26, 2012
    • Avi Kivity's avatar
      memory: implement a real malloc/free set · 22a07c17
      Avi Kivity authored
      This implementation stores small objects in pools of similar-sized objects,
      while large objects are allocated using a first-fit algorithm.  There is also
      a specialized interface for allocating aligned pages.
      22a07c17
  11. Dec 25, 2012
  12. Dec 24, 2012
  13. Dec 23, 2012
Loading