[sgen] Rename the total heap size reporting client function, and pass size as `size_t`.
authorMark Probst <mark.probst@gmail.com>
Fri, 9 Jan 2015 21:40:03 +0000 (13:40 -0800)
committerMark Probst <mark.probst@gmail.com>
Wed, 29 Apr 2015 18:00:07 +0000 (11:00 -0700)
mono/metadata/sgen-client.h
mono/metadata/sgen-memory-governor.c
mono/metadata/sgen-mono.c

index 081f93b4dfaa0cb5deb0eda017feb9ef810531fa..c805dcc7f005186a2af190886e2b15389b5b0516 100644 (file)
@@ -78,7 +78,7 @@ void sgen_client_collecting_major_3 (SgenPointerQueue *fin_ready_queue, SgenPoin
 
 void sgen_client_degraded_allocation (size_t size);
 
-void sgen_client_total_allocated_heap (mword allocated_heap);
+void sgen_client_total_allocated_heap_changed (size_t allocated_heap_size);
 
 gpointer sgen_client_out_of_memory (size_t size);
 
index 479e02c1ff0b1b0ea948fa3674cae08fe1d9de89..76617706aedaa3905f22b1af32904f90cb03f866 100644 (file)
@@ -284,7 +284,7 @@ sgen_memgov_try_alloc_space (mword size, int space)
        }
 
        SGEN_ATOMIC_ADD_P (allocated_heap, size);
-       sgen_client_total_allocated_heap (allocated_heap);
+       sgen_client_total_allocated_heap_changed (allocated_heap);
        return TRUE;
 }
 
index 29fe2ce2e8587ed01e8d4a8c24a631cf88c349a8..b76f051d35d9afb7f7a31718c8f292f000971d69 100644 (file)
@@ -2379,7 +2379,7 @@ mono_gc_pthread_exit (void *retval)
  */
 
 void
-sgen_client_total_allocated_heap (mword allocated_heap)
+sgen_client_total_allocated_heap_changed (size_t allocated_heap)
 {
        mono_runtime_resource_check_limit (MONO_RESOURCE_GC_HEAP, allocated_heap);
 }