What is the malloc threshold of Map object? How to modify it? Technology Community › Category: Golang › What is the malloc threshold of Map object? How to modify it? 0 Vote Up Vote Down VietMX Staff asked 4 years ago The default limit is 128. It can be modified by changing the value of maxKeySize and maxValueSize in runtime.hashmap.