Michail,

Generally speaking I can think of fully user code which produces exactly the
same result.
So, workarounding this in one place (finalizers) just is not enough.

Regards,
   Pavel.

On 10/11/06, Mikhail Fursov <[EMAIL PROTECTED]> wrote:

On 10/11/06, Salikh Zakirov <[EMAIL PROTECTED]> wrote:
>
> I believe the real root cause is running java code from
> vm_hint_finalize().
> A possible solution would be:
>
> - rewrite vm_hint_finalize() to just run 'notify' operation, without
> calling any real java code
> - handle reference queue in the finalizer thread instead of enqueuing it
> directly from vm_hint_finalize() thread
>

I support the idea to fix the finalization code. The requirement from JIT
to
use lazy resolution everywhere is overkill in this case.
Also the lazy resolution requires very significant changes in the current
Jitrino.OPT implementation and will make the static modes (-Xem:opt,
-Xem:sever_static) unusable because of the performance degradation.

--
Mikhail Fursov


Reply via email to