[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
In the current JavaHL code the C++ objects are attached via pointer stored in
Java_method(JNIEnv *env, jobject jthis)
I was thinking why not simplify this by doing all object->jlong lookup in the
private native static method(long cppAddr);
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,
This is an archived mail posted to the Subversion Dev mailing list.