in java 1.8,
hashmap may have thread unsafe problem while in 1.7 hashmap may have dead loop.
Hashmap involves in link to tree node and trr node to list node. / 红黑树
when memory is not enough,, it will come across memory in sufficient. it have threhold (like buffer) and double size the memory.