We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aba6766 commit 6cb71e7Copy full SHA for 6cb71e7
src/gc.c
@@ -4015,14 +4015,10 @@ void jl_gc_init(void)
4015
4016
JL_DLLEXPORT void jl_gc_set_max_memory(uint64_t max_mem)
4017
{
4018
- if (max_mem > 0
4019
- && max_mem < (uint64_t)1 << (sizeof(memsize_t) * 8 - 1)) {
4020
- #ifdef _P64
4021
- max_total_memory = max_mem;
4022
- #else
4023
- max_total_memory = max_mem < MAX32HEAP ? max_mem : MAX32HEAP;
4024
- #endif
4025
- }
+#ifdef _P32
+ max_mem = max_mem < MAX32HEAP ? max_mem : MAX32HEAP;
+#endif
+ max_total_memory = max_mem;
4026
}
4027
4028
JL_DLLEXPORT uint64_t jl_gc_get_max_memory(void)
0 commit comments