Hi
Alex my answer is inline:

On 10/20/06, Alex Astapchuk <[EMAIL PROTECTED]> wrote:

Helpers are neither called as JNI methods nor they are called through
the JNI.

Or do you propose to make a code for the helpers as the JNI methods?
How would the 'jni_alloc(Address class, int size);' look like in the C
code?

Yes.  Current slow path call is very simular to JNI.
It's can be looks like:

jni_alloc(jclass clss) {
    hythread_suspend_disable();
   Class* c = jni_get_class_handle(clss)
   ManageObject obj = class_alloc_new_object(Class *c);
   ObjectHandle obj_handle = NULL;

   if (NULL != obj) {
       obj_handle = oh_allocate_global_handle();
   }
   hythread_suspend_enable();
   return obj_handle;'
}

Reply via email to