[profiler] Add a missing method_leave event for the CEE_MONO_RETOBJ opcode.
authorAlex Rønne Petersen <alpeters@microsoft.com>
Thu, 24 Aug 2017 15:08:49 +0000 (17:08 +0200)
committerAlex Rønne Petersen <alpeters@microsoft.com>
Thu, 24 Aug 2017 15:08:49 +0000 (17:08 +0200)
mono/mini/method-to-ir.c

index 31c5513743eb140e004b0bf81e774d26d3798676..104df90ad0f418f99f369a69af2442111fe7006e 100644 (file)
@@ -11688,6 +11688,8 @@ mono_method_to_ir (MonoCompile *cfg, MonoMethod *method, MonoBasicBlock *start_b
                                if (sp != stack_start)
                                        UNVERIFIED;
                                
+                               mini_profiler_emit_leave (cfg, sp [0]);
+
                                MONO_INST_NEW (cfg, ins, OP_BR);
                                ins->inst_target_bb = end_bblock;
                                MONO_ADD_INS (cfg->cbb, ins);