Fixed fomatting issues.
authorNathan Ricci <naricc@microsoft.com>
Fri, 23 Aug 2019 17:42:34 +0000 (13:42 -0400)
committerNathan Ricci <naricc@microsoft.com>
Fri, 23 Aug 2019 17:42:34 +0000 (13:42 -0400)
Commit migrated from https://github.com/mono/mono/commit/cdb77f1391b434b6cd59f158eecbc6f42717605c

src/mono/mono/metadata/sgen-mono.c
src/mono/mono/sgen/sgen-alloc.c
src/mono/mono/sgen/sgen-gc.h

index 9af6a84..24c4cc8 100644 (file)
@@ -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;
index 2d4d788..d5679f0 100644 (file)
@@ -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);
 }
 
 
index 85ceb1c..a3e08d4 100644 (file)
@@ -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;