[RFC] JavaHL: Moving some of the C++ object address logic into Java
From: Vladimir Berezniker <vmpn_at_hitechman.com>
Date: Sun, 24 Jun 2012 23:20:26 -0400
Hi All,
In the current JavaHL code the C++ objects are attached via pointer stored in
Java:
class JHLClass
JNI Stub:
Java_method(JNIEnv *env, jobject jthis)
C++:
class JHLClass
I was thinking why not simplify this by doing all object->jlong lookup in the
class JHLClass
private native static method(long cppAddr);
JNI Stub:
Java_method(JNIEnv *env, jlong cppAdder)
C++: No additional code necessary
This will require a related change in JNIStackElement, as it won't have jthis
What do others think? Any objections at least of doing this in RA functions?
Thank you for your time,
Vladimir
|
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.