[interp] check existence of InterpMethod before removing it from interp code hastable
commitbedea5a1d4c1f616aa9871db28bff290b38ff91a
authorBernhard Urban <lewurm@gmail.com>
Wed, 13 Jun 2018 08:33:44 +0000 (13 10:33 +0200)
committerMarek Safar <marek.safar@gmail.com>
Mon, 18 Jun 2018 09:24:34 +0000 (18 11:24 +0200)
tree5870887b5cec63be4b08c3b5e955975274a284fc
parent4161518777008c286394c9c6fce6d90bb4fb9939
[interp] check existence of InterpMethod before removing it from interp code hastable

when creating dynamic methods, we put those in a queue so they can be
collected later via `mono_jit_free_method ()`. the interpreter part was
assuming, as soon as we allocate a dynamic method, it will be executed
eventually and therefore an InterpMethod must exist in
`info.interp_code_hash`, but this isn't necessarily the case.
mono/mini/mini-runtime.c