harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "bu qi cheng" <buqi.ch...@gmail.com>
Subject Re: Enable the MACRO _DEBUG_CHECK_NULL_
Date Thu, 13 Nov 2008 07:05:41 GMT
Hi Mikhail

     Can you show us where is the magic for the monitorEnter?  The eliminate
the chknull, the HLR magic is needed.


On Thu, Nov 13, 2008 at 2:25 PM, Mikhail Fursov <mike.fursov@gmail.com>wrote:

> AFAIR checknull is always precedes an operation that can cause exception if
> one of its arguments is NULL. Since this operation may have side effects -
> it can't be removed nor moved into try/cactch block by optimizer.
> In our case if the operation is a helper-call - it must fit this scheme: do
> manual nullcheck.
> There should not be any performance problem here: if the helper is hot ->
> Jitrino.OPT will inline it using magics and eliminate the check.
> So I see no problems enabling null-check inside of the VM helper.
> --
> Mikhail Fursov

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message