Debugging NPE during CanonicalizerPhase

Stefan Marr java at stefan-marr.de
Wed Aug 7 05:05:21 PDT 2013


Hi Michael: (resent to list, went out with wrong sender)

On 07 Aug 2013, at 10:43, Michael Haupt <michael.haupt at Oracle.com> wrote:

> Hi Stefan,
> 
> Am 07.08.2013 um 08:41 schrieb Stefan Marr <java at stefan-marr.de>:
>> On 07 Aug 2013, at 00:58, Andreas Woess <andreas.woess at jku.at> wrote:
>>> Looks like a frame slot field in one of your nodes was null at compile
>>> time and read as a constant value. I'll have a look at your code tomorrow.
>> 
>> That could well be.
>> Are you suggesting that the frame slots should be initialize with a language value?
> 
> TruffleSOM being a Smalltalk implementation, all slots should be initialised with nil, right? An array fill operation should do, and Graal can nicely intensify those.

I don't think that's it.
I initialized also local slots now with nil.
So, all TruffleSOM frames should be fully initialized with language values.

https://github.com/smarr/TruffleSOM/commit/33195113eb1080463edf55f6a8a11a7a50fae047

There shouldn't be any Java nulls in them.
But the error is unchanged, still the same NPE stack trace as far as I can see.

Thanks
Stefan


-- 
Stefan Marr
Software Languages Lab
Vrije Universiteit Brussel
Pleinlaan 2 / B-1050 Brussels / Belgium
http://soft.vub.ac.be/~smarr
Phone: +32 2 629 2974
Fax:   +32 2 629 3525



More information about the graal-dev mailing list