diff options
author | Mikael Pettersson <mikael.pettersson@klarna.com> | 2016-04-26 09:13:45 +0200 |
---|---|---|
committer | Mikael Pettersson <mikpelinux@gmail.com> | 2016-05-05 12:50:24 +0200 |
commit | d053fed5d3f546b2f1f19e16a60c6330f8526c95 (patch) | |
tree | 5e359a6b53e07d9fc30e943277e6ac41d62a19e5 /erts/emulator/beam/erl_message.h | |
parent | 98855709622835602b4c0a2d37e3f06ceb003af7 (diff) | |
download | otp-d053fed5d3f546b2f1f19e16a60c6330f8526c95.tar.gz otp-d053fed5d3f546b2f1f19e16a60c6330f8526c95.tar.bz2 otp-d053fed5d3f546b2f1f19e16a60c6330f8526c95.zip |
do not limit heap fragments to 4 giga-words
- struct erl_heap_fragment: use Uint for sizes
- erl_nif.c: use size_t for sizes
- erts_heap_frag_shrink(): remove now redundant cast
Diffstat (limited to 'erts/emulator/beam/erl_message.h')
-rw-r--r-- | erts/emulator/beam/erl_message.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/beam/erl_message.h b/erts/emulator/beam/erl_message.h index 608cf552a2..60cf9a24e1 100644 --- a/erts/emulator/beam/erl_message.h +++ b/erts/emulator/beam/erl_message.h @@ -112,8 +112,8 @@ typedef struct erl_heap_fragment ErlHeapFragment; struct erl_heap_fragment { ErlHeapFragment* next; /* Next heap fragment */ ErlOffHeap off_heap; /* Offset heap data. */ - unsigned alloc_size; /* Size in (half)words of mem */ - unsigned used_size; /* With terms to be moved to heap by GC */ + Uint alloc_size; /* Size in (half)words of mem */ + Uint used_size; /* With terms to be moved to heap by GC */ Eterm mem[1]; /* Data */ }; |