From: Nathan Ricci Date: Fri, 23 Aug 2019 17:42:34 +0000 (-0400) Subject: Fixed fomatting issues. X-Git-Tag: submit/tizen/20210909.063632~10331^2~5^2~516^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4ce518afaef06c5f5c0703bca9c6314825b458e9;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Fixed fomatting issues. Commit migrated from https://github.com/mono/mono/commit/cdb77f1391b434b6cd59f158eecbc6f42717605c --- diff --git a/src/mono/mono/metadata/sgen-mono.c b/src/mono/mono/metadata/sgen-mono.c index 9af6a84..24c4cc8 100644 --- a/src/mono/mono/metadata/sgen-mono.c +++ b/src/mono/mono/metadata/sgen-mono.c @@ -2505,7 +2505,7 @@ mono_gc_get_los_limit (void) } void -sgen_set_bytes_allocated_attached(guint64 bytes) +sgen_set_bytes_allocated_attached (guint64 bytes) { bytes_allocated_attached = bytes; } @@ -2521,14 +2521,13 @@ mono_gc_get_allocated_bytes_for_current_thread (void) } guint64 -mono_gc_get_total_allocated_bytes(MonoBoolean precise) +mono_gc_get_total_allocated_bytes (MonoBoolean precise) { - if (precise) - { + if (precise) { LOCK_GC; sgen_stop_world (0, FALSE); - sgen_update_allocation_count(); + sgen_update_allocation_count (); sgen_restart_world (0, FALSE); UNLOCK_GC; diff --git a/src/mono/mono/sgen/sgen-alloc.c b/src/mono/mono/sgen/sgen-alloc.c index 2d4d788..d5679f0 100644 --- a/src/mono/mono/sgen/sgen-alloc.c +++ b/src/mono/mono/sgen/sgen-alloc.c @@ -520,7 +520,7 @@ sgen_clear_tlabs (void) info->tlab_real_end = NULL; } FOREACH_THREAD_END - sgen_set_bytes_allocated_attached(total_bytes_allocated_globally); + sgen_set_bytes_allocated_attached (total_bytes_allocated_globally); } void sgen_update_allocation_count (void) @@ -532,7 +532,7 @@ void sgen_update_allocation_count (void) total_bytes_allocated_globally += info->total_bytes_allocated; } FOREACH_THREAD_END - sgen_set_bytes_allocated_attached(total_bytes_allocated_globally); + sgen_set_bytes_allocated_attached (total_bytes_allocated_globally); } diff --git a/src/mono/mono/sgen/sgen-gc.h b/src/mono/mono/sgen/sgen-gc.h index 85ceb1c..a3e08d4 100644 --- a/src/mono/mono/sgen/sgen-gc.h +++ b/src/mono/mono/sgen/sgen-gc.h @@ -477,7 +477,7 @@ int sgen_get_current_collection_generation (void); gboolean sgen_collection_is_concurrent (void); gboolean sgen_get_concurrent_collection_in_progress (void); -void sgen_set_bytes_allocated_attached(guint64); +void sgen_set_bytes_allocated_attached (guint64); typedef struct _SgenFragment SgenFragment;