projects
/
platform
/
upstream
/
dotnet
/
runtime.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb42a28
)
I hoisted the accounting for LOH into allocate_large_objects to avoid missing countin...
author
Maoni Stephens
<Maoni0@users.noreply.github.com>
Sun, 19 Mar 2017 04:30:55 +0000
(21:30 -0700)
committer
Jan Kotas
<jkotas@microsoft.com>
Sun, 19 Mar 2017 04:30:55 +0000
(21:30 -0700)
Commit migrated from https://github.com/dotnet/coreclr/commit/
fc3220f19a8ee8266e0782bf8878790453f790e6
src/coreclr/src/gc/gc.cpp
patch
|
blob
|
history
diff --git
a/src/coreclr/src/gc/gc.cpp
b/src/coreclr/src/gc/gc.cpp
index
9551e9f
..
b58f4cc
100644
(file)
--- a/
src/coreclr/src/gc/gc.cpp
+++ b/
src/coreclr/src/gc/gc.cpp
@@
-30766,6
+30766,7
@@
CObjectHeader* gc_heap::allocate_large_object (size_t jsize, int64_t& alloc_byte
uint8_t* result = acontext.alloc_ptr;
assert ((size_t)(acontext.alloc_limit - acontext.alloc_ptr) == size);
+ alloc_bytes += size;
CObjectHeader* obj = (CObjectHeader*)result;
@@
-30802,7
+30803,6
@@
CObjectHeader* gc_heap::allocate_large_object (size_t jsize, int64_t& alloc_byte
assert (obj != 0);
assert ((size_t)obj == Align ((size_t)obj, align_const));
- alloc_bytes += acontext.alloc_bytes;
return obj;
}