public inbox for frysk@sourceware.org
 help / color / mirror / Atom feed
From: Andrew Cagney <cagney@redhat.com>
To: frysk <frysk@sources.redhat.com>
Subject: Running frysk within an interpreter using JNI
Date: Fri, 06 Jun 2008 21:18:00 -0000	[thread overview]
Message-ID: <4849A002.5020402@redhat.com> (raw)

FYI,

I've committed a prototype set of JNI bindings sufficient to run frysk's 
testsuite and, to a limited degree, run frysk utilities using an 
interpreted environment.  So far I've got frysk-sys down to 10 failures 
(and elfutils up for two bugs :-).

Once we've nailed down the remaining problems we'll be able to switch to 
these new bindings (we can also continue to compile natively) and flush 
the CNI code.  In addition, we'll be able to switch to using SOLIBS and 
greatly reduce our executable foot print.  However, in the intervening 
period we'll need to maintain both code bases.  This shouldn't be hard 
though, by using JNIXX (a JNI binding generator), I've been able 
minimise the differences so that the new bindings look and behave 
similar to CNI.

For the curious, and to make testing easier, I've also added two scripts 
to the build tree:

Runner: a hack to make invoking an interpreter easier vis:
    $ ./Runner frysk.bindir.fhpd
    vm loaded
    (fhpd) load /bin/ls
    [0.0] Loaded executable file: /bin/ls
    (fhpd)

JniRunner: JNI equivalent to TestRunner, for running the testsuite in tree:
    $ ./JniRunner frysk.testbed.TestForkFactory
    vm loaded
    Running testDetachedDaemon(frysk.testbed.TestForkFactory) ...PASS
    Running testAttachedDaemon(frysk.testbed.TestForkFactory) ...PASS
    Time: 0.45
    OK (2 tests)

Andrew


                 reply	other threads:[~2008-06-06 20:38 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4849A002.5020402@redhat.com \
    --to=cagney@redhat.com \
    --cc=frysk@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).