projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
889b711
)
[sgen] Increase counter when actually allocating gray sections
author
Vlad Brezae
<brezaevlad@gmail.com>
Tue, 13 Sep 2016 19:59:41 +0000
(22:59 +0300)
committer
Vlad Brezae
<brezaevlad@gmail.com>
Fri, 16 Sep 2016 17:45:14 +0000
(20:45 +0300)
mono/sgen/sgen-gray.c
patch
|
blob
|
history
diff --git
a/mono/sgen/sgen-gray.c
b/mono/sgen/sgen-gray.c
index 9b5f92a19547916049f9129c7ed8a1fd360497c8..f8f04c145807db19fb27a7676f73d36f77555a05 100644
(file)
--- a/
mono/sgen/sgen-gray.c
+++ b/
mono/sgen/sgen-gray.c
@@
-49,8
+49,6
@@
sgen_gray_object_alloc_queue_section (SgenGrayQueue *queue)
{
GrayQueueSection *section;
- HEAVY_STAT (stat_gray_queue_section_alloc ++);
-
if (queue->alloc_prepare_func)
queue->alloc_prepare_func (queue);
@@
-60,6
+58,8
@@
sgen_gray_object_alloc_queue_section (SgenGrayQueue *queue)
queue->free_list = section->next;
STATE_TRANSITION (section, GRAY_QUEUE_SECTION_STATE_FREE_LIST, GRAY_QUEUE_SECTION_STATE_FLOATING);
} else {
+ HEAVY_STAT (stat_gray_queue_section_alloc ++);
+
/* Allocate a new section */
section = (GrayQueueSection *)sgen_alloc_internal (INTERNAL_MEM_GRAY_QUEUE);
STATE_SET (section, GRAY_QUEUE_SECTION_STATE_FLOATING);