[Coop] Convert performance counters and performance counter categories. (#13623)
commit435feaaa0201de4341198c0cec5e225732d50298
authorJay Krell <jay.krell@cornell.edu>
Fri, 19 Apr 2019 15:27:16 +0000 (19 08:27 -0700)
committerAleksey Kliger (λgeek) <akliger@gmail.com>
Fri, 19 Apr 2019 15:27:16 +0000 (19 11:27 -0400)
treed3a29d5ca8d095204cb28fe3da6186a87f61ae83
parent84f6e1dfacbb8deba277907028e9418b4fdfe5b3
[Coop] Convert performance counters and performance counter categories. (#13623)

* Cut down on strlen calls.
But keep the shared memory format unchanged to match .NET. (i.e. don't
put string lengths in it).

* PR: MONO_ENTER_NO_SAFEPOINTS instead of gchandle.

Push/pop frames in loops and mind the return/goto/break/continue carefully, instead of using assignment.

*PR: Reduce gsize to adequate int, move multiple int declarations to same line.

* PR: Fix prototypes in disabled code.

* PR: Spell out `int` as `gint32`.

Use an uppercase guid to workaround Windows problem.

* A bit more true to the previous version.
* Reduce diff a little.
* if (is_ok()) around one line instead of goto around it.
* Restore some old code.
* Restore more verbosity, that used to have a point but no longer does.
configure.ac
mcs/class/System/System.Diagnostics/PerformanceCounter.cs
mcs/class/System/System.Diagnostics/PerformanceCounterCategory.cs
mono/metadata/handle.h
mono/metadata/icall-def.h
mono/metadata/icall-table.h
mono/metadata/mono-perfcounters.c
mono/metadata/mono-perfcounters.h
mono/metadata/object-internals.h
mono/metadata/object.c