Skip to content

Commit

Permalink
[merp] Fix logic of 'is_managed' attribute
Browse files Browse the repository at this point in the history
Commit migrated from mono/mono@4840f41
  • Loading branch information
alexischr authored and lewing committed Sep 4, 2019
1 parent e0ce026 commit 51b69b3
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/mono/mono/utils/mono-state.c
Original file line number Diff line number Diff line change
Expand Up @@ -454,12 +454,10 @@ mono_native_state_add_frame (MonoStateWriter *writer, MonoFrameSummary *frame)
mono_state_writer_printf(writer, "{\n");
writer->indent++;

if (frame->is_managed) {
assert_has_space (writer);
mono_state_writer_indent (writer);
mono_state_writer_object_key (writer, "is_managed");
mono_state_writer_printf(writer, "\"%s\",", frame->is_managed ? "true" : "false");
}
assert_has_space (writer);
mono_state_writer_indent (writer);
mono_state_writer_object_key (writer, "is_managed");
mono_state_writer_printf(writer, "\"%s\",", frame->is_managed ? "true" : "false");

if (frame->unmanaged_data.is_trampoline) {
mono_state_writer_printf(writer, "\n");
Expand Down

0 comments on commit 51b69b3

Please sign in to comment.