[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Proposal for changes to Classpath's JNI libraries
From: |
Stephen Crawley |
Subject: |
Re: Proposal for changes to Classpath's JNI libraries |
Date: |
Wed, 04 Dec 2002 09:19:22 +1000 |
> Stephen Crawley wrote:
> > Stephen Crawley wrote:
> >
> > I understand this. Unfortunately it does not work for us at the moment
> > because Kissme's native methods do not "obey the rules", and are hence
> > not GC safe.
>
> How about adding the special code in *kissme*'s native methods then?
> That is to say, assume that any JNI function is GC safe unless it
> specifies, somehow, that it isn't. Then go through all the
> Kissme-internal native calls that worry you (probably automatically,
> using a script) and add the necessary specification.
>
> This "specification" could be as simple as finding the start of a
> function, adding a call to "kissme_disable_gc()" or whatever, and then
> going to all exit points and adding "kissme_enable_gc()". Or just adding
> "kissme_disable_gc_for_this_function()" and letting kissme itself figure
> out what to do when the function returns.
>
> That seems like a lot less effort than doing the same kind of thing, but
> in reverse, for all *classpath*'s native methods.
This is a REALLY GOOD IDEA! I wish I'd thought of it.
I'll start trying to implement this approach tonight.
-- Steve
-- Steve
- Re: Proposal for changes to Classpath's JNI libraries, (continued)
- Re: Proposal for changes to Classpath's JNI libraries, Artur Biesiadowski, 2002/12/03
- Re: [Kissme-general] Re: Proposal for changes to Classpath's JNI libraries, Etienne M. Gagnon, 2002/12/03
- Re: [Kissme-general] Re: Proposal for changes to Classpath's JNI libraries, John Leuner, 2002/12/03
- Re: [Kissme-general] Re: Proposal for changes to Classpath's JNI libraries, Etienne M. Gagnon, 2002/12/03
- Re: [Kissme-general] Re: Proposal for changes to Classpath's JNI libraries, Artur Biesiadowski, 2002/12/03
- Re: [Kissme-general] Re: Proposal for changes to Classpath's JNI libraries, Etienne M. Gagnon, 2002/12/03
- Re: [Kissme-general] Re: Proposal for changes to Classpath's JNI libraries, Stephen Crawley, 2002/12/03
- Re: [Kissme-general] Re: Proposal for changes to Classpath's JNI libraries, Etienne M. Gagnon, 2002/12/04
- Re: Proposal for changes to Classpath's JNI libraries, John Leuner, 2002/12/03
Re: Proposal for changes to Classpath's JNI libraries, Brian Jones, 2002/12/08
Re: Proposal for changes to Classpath's JNI libraries,
Stephen Crawley <=