Skip to content
Snippets Groups Projects
  1. Oct 14, 2013
    • Tomasz Grabiec's avatar
      RunJava: handle directories in classpath properly · 9325f833
      Tomasz Grabiec authored
      
      URLClassLoader determines whether URL denotes a jar or directory
      by checking the last character of the path.
      
      Before:
      
         [/]% java -cp java Hello
         Uncaught Java exception:
         java.lang.ClassNotFoundException: Hello
             at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
             at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
             at java.security.AccessController.doPrivileged(Native Method)
             at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
             at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
             at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
             at io.osv.RunJava.loadClass(RunJava.java:175)
             at io.osv.RunJava.runClass(RunJava.java:115)
             at io.osv.RunJava.parseArgs(RunJava.java:81)
             at io.osv.RunJava.main(RunJava.java:27)
      
      After:
      
         [/]% java -cp java Hello
         Hello, world.
      
      Signed-off-by: default avatarTomasz Grabiec <tgrabiec@cloudius-systems.com>
      9325f833
    • Tomasz Grabiec's avatar
      java.cc: return on error rather than abort · e0b8739c
      Tomasz Grabiec authored
      
      Currently we call abort() if something is wrong whith
      java.so command. Now that we allow to run processes from
      the command line this may not be the best behavior because
      a problem with starting a less import program will abort
      the system:
      
        [/]% run java.so -cp java Hello
        run_elf(): running main() in the context of thread 0xffffc0000c30b010
        java.so: Can't create VM.
        Aborted
      
      Instead of that we could just return and the system can
      be still usable:
      
        [/]% run java.so -cp java Hello
        run_elf(): running main() in the context of thread 0xffffc0000c30b010
        java.so: Can't create VM.
        run: finished with exitcode 1
      
        [/]%
      
      Signed-off-by: default avatarTomasz Grabiec <tgrabiec@cloudius-systems.com>
      e0b8739c
  2. Oct 13, 2013
  3. Oct 11, 2013
    • Tomasz Grabiec's avatar
      Move mgmt submodule head · 9bb55838
      Tomasz Grabiec authored
      This also requires fixing paths to mgmt jars in build.mk
      and usr.manifest as the version scheme has changed.
      
      git log --format=short 7a4db4e759b..54f4810a7:
      
        commit 54f4810a76fabf955aeea34baefa336abf8b8467
        Author: Tomasz Grabiec <tgrabiec@cloudius-systems.com>
      
            Revert "supporting artifactory publish"
      
        commit 4abf771d146d6cde66f330e6b6ab6ececffb4cdd
        Author: Tomasz Grabiec <tgrabiec@cloudius-systems.com>
      
            mgmt/web: ditch jline-2.7 pulled by jruby-core
      
        commit 3863a3b58b661cd751314966cccb0f6c9835ed4a
        Author: Nadav Har'El <nyh@cloudius-systems.com>
      
            Moved RunJava to io.osv namespace
      
        commit be0717595f45d647062e7a41cc8dd38393c96547
        Author: Ronen Narkis <narkisr@gmail.com>
      
            supporting testing (jruby rake test does not work no matter what)
      
        commit 46e74f6bb886a0c62b06f08559fe2e44efdb8900
        Author: Ronen Narkis <narkisr@gmail.com>
      
            ignoring build
      
        commit 95ff3b70bae877d5d8cf0144853d1a201a0be333
        Author: Ronen Narkis <narkisr@gmail.com>
      
            verfying json existence and giving meaning full error
      
        commit 8b60c4a40aa4bcb7ce08bba600fd9cd6d63e1073
        Author: Ronen Narkis <narkisr@gmail.com>
      
            moving to three digit versioning in order to have a finer grained control on rel
      
        commit ffa7646388cec8d5b138ff4fc28a985c6344824c
        Author: Ronen Narkis <narkisr@gmail.com>
      
            supporting artifactory publish
      
        commit 8855112e2c867b4f855ed28ad9d9982c26bc56a3
        Author: Ronen Narkis <narkisr@gmail.com>
      
            clearing unused repo
      
        commit 3be79eb18b2be7bf1f28aaebd9905ac77945e4e4
        Author: Or Cohen <orc@fewbytes.com>
      
            Migrated ifconfig from previous JS console
      
        commit 287b014cf709e9c46692c59f87b70ebf056114b5
        Author: Or Cohen <orc@fewbytes.com>
      
            Migrated run command from previous CLI
      
        commit 0ffe064d30c1a812d7e853ee568ce45bfc16ed42
        Author: Or Cohen <orc@fewbytes.com>
      
            Added daemonizeIfNeeded helper method for commands
      
        commit 36951a86493c954a2e939648b5060260fac5b539
        Author: Or Cohen <orc@fewbytes.com>
      
            Moved ELFLoader from cloudius.cli to cloudius.util
      9bb55838
    • Pekka Enberg's avatar
      x64: Fix nested exception debugging · 82301253
      Pekka Enberg authored
      
      As of commit a449b889 ("x64: Enable sleeping in fault context") it's now
      safe for another thread to enter a fault handler on the same CPU.  Fix
      exception guard to reflect that.
      
      This is needed for demand paging where a page fault from another thread
      can happen on the same CPU where a thread is sleeping in the page fault
      handler.
      
      Signed-off-by: default avatarPekka Enberg <penberg@cloudius-systems.com>
      82301253
    • Dinakar Guniguntala's avatar
      dlfcn: Fix dladdr return value · b0d2821f
      Dinakar Guniguntala authored
      Noticed a minor bug in the OSv dlfcn implementation.
      According to the linux man pages, dladdr returns non-zero on success
      and zero on error -> http://linux.die.net/man/3/dladdr
      
      
      
      Signed-off-by: default avatarDinakar Guniguntala <dino@linux.vnet.ibm.com>
      Signed-off-by: default avatarPekka Enberg <penberg@cloudius-systems.com>
      b0d2821f
  4. Oct 10, 2013
  5. Oct 09, 2013
Loading