diff options
author | Björn-Egil Dahlberg <[email protected]> | 2010-07-22 17:55:28 +0200 |
---|---|---|
committer | Patrik Nyblom <[email protected]> | 2010-08-12 14:55:43 +0200 |
commit | 7664e3ac07f51522b464e550e6012056d4ab45d5 (patch) | |
tree | b6f66bea0aa23c2276d2cb7fef4b4d24b2e2c8c8 /erts/emulator/beam/erl_message.c | |
parent | d3f229d4f311c218d6a92f575f63feb3a02eb68c (diff) | |
download | otp-7664e3ac07f51522b464e550e6012056d4ab45d5.tar.gz otp-7664e3ac07f51522b464e550e6012056d4ab45d5.tar.bz2 otp-7664e3ac07f51522b464e550e6012056d4ab45d5.zip |
Increase vheap counter to Uint64
This will reduce the risk of integer wrapping in bin vheap counting.
The vheap size series will now use the golden ratio instead of doubling
and fibonacci sequences.
OTP #8730
Diffstat (limited to 'erts/emulator/beam/erl_message.c')
-rw-r--r-- | erts/emulator/beam/erl_message.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/beam/erl_message.c b/erts/emulator/beam/erl_message.c index 1f61dca230..82f272d28a 100644 --- a/erts/emulator/beam/erl_message.c +++ b/erts/emulator/beam/erl_message.c @@ -220,7 +220,7 @@ link_mbuf_to_proc(Process *proc, ErlHeapFragment *bp) *next_p = MSO(proc).first; MSO(proc).first = bp->off_heap.first; bp->off_heap.first = NULL; - MSO(proc).overhead += bp->off_heap.overhead; + OH_OVERHEAD(&(MSO(proc)), bp->off_heap.overhead); } } } @@ -535,7 +535,7 @@ erts_move_msg_mbuf_to_heap(Eterm** hpp, ErlOffHeap* off_heap, ErlMessage *msg) goto copy_done; } - off_heap->overhead += bp->off_heap.overhead; + OH_OVERHEAD(off_heap, bp->off_heap.overhead); sz = bp->used_size; ASSERT(is_immed(term) || in_heapfrag(ptr_val(term),bp)); |