This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Is the boehm GC supported under FreeBSD?


> I didn't want you go to answer-less,

That's okay.  It's just that I haven't had the time to look at this and
the jni/reflection problem overhead, yet.  (I already have a workaround
for the missing _Jv_LookupDeclaredMethod in 3.4's natMethod.cc (*), but
that's not important).

Regarding the improved jni performance patch, this may be the cause for
the performance problem I experience; or may be not.  I'll check this
this weekend.  


Jost 

(*) A possible patch could be:

       _Jv_VTable *vtable = *(_Jv_VTable **) obj;
-      ncode = vtable->get_method (meth->index);
+      if(is_jni_call) {
+       _Jv_Method *concrete_meth
+         = _Jv_LookupDeclaredMethod (vtable->clas,
+                                     meth->name,
+                                     meth->signature);
+       if (concrete_meth == NULL) throw_exception()
+       ncode = concrete_meth->ncode;
+      } else {
+       ncode = vtable->get_method (meth->index);
+      }



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]