diff options
author | Mikael Pettersson <[email protected]> | 2016-04-26 09:13:45 +0200 |
---|---|---|
committer | Mikael Pettersson <[email protected]> | 2016-05-05 12:50:24 +0200 |
commit | d053fed5d3f546b2f1f19e16a60c6330f8526c95 (patch) | |
tree | 5e359a6b53e07d9fc30e943277e6ac41d62a19e5 /erts/emulator/beam/erl_process.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_process.h')
-rw-r--r-- | erts/emulator/beam/erl_process.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/beam/erl_process.h b/erts/emulator/beam/erl_process.h index 1c01d705a7..0f69ddeed8 100644 --- a/erts/emulator/beam/erl_process.h +++ b/erts/emulator/beam/erl_process.h @@ -1291,7 +1291,7 @@ ERTS_GLB_INLINE void erts_heap_frag_shrink(Process* p, Eterm* hp) { ErlHeapFragment* hf = MBUF(p); - ASSERT(hf!=NULL && (hp - hf->mem < (unsigned long)hf->alloc_size)); + ASSERT(hf!=NULL && (hp - hf->mem < hf->alloc_size)); hf->used_size = hp - hf->mem; } |