-
Notifications
You must be signed in to change notification settings - Fork 62
Open
Description
Map<Long, Object> map = new NonBlockingHashMap<Long, Object>();
for (long i = 0;;i++) {
map.put(i, i);
map.remove(i);
}Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at org.cliffc.high_scale_lib.NonBlockingHashMap$CHM.resize(NonBlockingHashMap.java:863)
at org.cliffc.high_scale_lib.NonBlockingHashMap$CHM.access$3(NonBlockingHashMap.java:794)
at org.cliffc.high_scale_lib.NonBlockingHashMap.putIfMatch(NonBlockingHashMap.java:649)
at org.cliffc.high_scale_lib.NonBlockingHashMap.putIfMatch(NonBlockingHashMap.java:354)
at org.cliffc.high_scale_lib.NonBlockingHashMap.put(NonBlockingHashMap.java:313)It is really serious bug because this make it unusable in many cases.
Same issue was addressed at
- https://sourceforge.net/p/high-scale-lib/bugs/14/
- http://jsr166-concurrency.10961.n7.nabble.com/Unexpected-memory-usage-in-NonBlockingHashHashMap-td9913.html
In the README file please add some notices about its limitation .
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels