Closed rishabh9 closed 5 years ago
Thanks for this report, interesting. Actually I'm in the process of rewriting SmoothieMap at the moment so I won't release any fix quickly, but if you want to to continue experimenting with SmoothieMap, you could replace that setMemory()
call in Segment.java:507
with a loop:
for (long offset = HASH_TABLE_OFFSET; offset < HASH_TABLE_OFFSET + HASH_TABLE_SIZE * HASH_TABLE_SLOT_SIZE; offset += Long.BYTES) {
U.putLong(this, offset, 0L);
}
Thank you for the information. I'll give that a try. Shall we leave the ticket open? This information will help others.
On Fri 30 Nov, 2018, 00:47 Roman Leventov <notifications@github.com wrote:
Thanks for this report, interesting. Actually I'm in the process of rewriting SmoothieMap at the moment so I won't release any fix quickly, but if you want to to continue experimenting with SmoothieMap, you could replace that setMemory() call in Segment.java:507 with a loop:
for (long offset = HASH_TABLE_OFFSET; offset < HASH_TABLE_SIZE * HASH_TABLE_SLOT_SIZE; offset += Long.BYTES) { U.putLong(this, offset, 0L); }
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/TimeAndSpaceIO/SmoothieMap/issues/6#issuecomment-442957521, or mute the thread https://github.com/notifications/unsubscribe-auth/AALX-bU_xbu-aF1Btk84j1p1hj8ApAJsks5u0DLbgaJpZM4Y3UZR .
This should now be fixed in SmoothieMap 2.0.1
On calling
clear()
the below exception is thrown:The below code can easily reproduce the issue. I am using OpenJDK 9.0.4.
Could someone please take a look into this?