[Coop] Convert performance counters and performance counter categories. (mono/mono...
authorJay Krell <jay.krell@cornell.edu>
Fri, 19 Apr 2019 15:27:16 +0000 (08:27 -0700)
committerAleksey Kliger (λgeek) <akliger@gmail.com>
Fri, 19 Apr 2019 15:27:16 +0000 (11:27 -0400)
commita0884d5f0bcb4b10323d143e3ab5eae13bb85ca9
tree2a71485c5667b8980384ef0d0ae2adb229818b42
parent37eb3549606ce539fe0f53eb67e505fed5ea81f4
[Coop] Convert performance counters and performance counter categories. (mono/mono#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.

Commit migrated from https://github.com/mono/mono/commit/435feaaa0201de4341198c0cec5e225732d50298
src/mono/configure.ac
src/mono/mono/metadata/handle.h
src/mono/mono/metadata/icall-def.h
src/mono/mono/metadata/icall-table.h
src/mono/mono/metadata/mono-perfcounters.c
src/mono/mono/metadata/mono-perfcounters.h
src/mono/mono/metadata/object-internals.h
src/mono/mono/metadata/object.c