Map malloc Threshold

What is the malloc threshold of Map object? How to modify it?

Answer

  1. The default limit is 128.
  2. It can be modified by changing the value of maxKeySize and maxValueSize in runtime.hashmap