[perf-counters] Declare shared data header type directly after creation
authorLudovic Henry <ludovic.henry@xamarin.com>
Tue, 10 Jun 2014 14:33:04 +0000 (10:33 -0400)
committerLudovic Henry <ludovic.henry@xamarin.com>
Tue, 11 Nov 2014 18:40:27 +0000 (13:40 -0500)
commitdc139819ea8aa9f9c6cc323894790848cda57e22
tree0d83e248fa310da2b2daa97f1aa861674e22762f
parent38f2bff71debeb06dfb13d70475ec4e9d19e460b
[perf-counters] Declare shared data header type directly after creation

Fix the following bug : shared_data_find_room return twice the same memory region because it was not marked as "in use" by setting the header.ftype value.
This bug is triggered when we want to create a new shared area (for example a new FTYPE_INSTANCE area) while creating another area (for example a new FTYPE_CATEGORY).
mono/metadata/mono-perfcounters.c