Mercurial > hg > truffle
diff src/share/vm/opto/callGenerator.cpp @ 20573:8ed0a8dbea70
8059556: C2: crash while inlining MethodHandle invocation w/ null receiver
Reviewed-by: kvn, jrose
author | vlivanov |
---|---|
date | Wed, 01 Oct 2014 12:34:45 -0700 |
parents | 411e30e5fbb8 |
children | 7848fc12602b |
line wrap: on
line diff
--- a/src/share/vm/opto/callGenerator.cpp Mon Sep 29 11:46:05 2014 -0700 +++ b/src/share/vm/opto/callGenerator.cpp Wed Oct 01 12:34:45 2014 -0700 @@ -862,7 +862,7 @@ call_does_dispatch, vtable_index); // out-parameters // We lack profiling at this call but type speculation may // provide us with a type - speculative_receiver_type = receiver_type->speculative_type(); + speculative_receiver_type = (receiver_type != NULL) ? receiver_type->speculative_type() : NULL; } CallGenerator* cg = C->call_generator(target, vtable_index, call_does_dispatch, jvms, true, PROB_ALWAYS, speculative_receiver_type, true, true);