Giter Site home page Giter Site logo

java-concurrent-hash-trie-map's People

Contributors

kingpoop avatar moizr avatar opti-mix avatar romix avatar rovarga avatar xuwei-k avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

java-concurrent-hash-trie-map's Issues

Is this supposed to work? new TrieMap<>().clear();

On my machine this results to an infinite loop:

/**
 *
 */
public void testClear() {
    new TrieMap<>().clear();
}

2013-08-06 19:41:05
Full thread dump Java HotSpot(TM) 64-Bit Server VM (23.25-b01 mixed mode):

"test-runner" prio=10 tid=0x00007f2d609d9800 nid=0x5cc7 runnable [0x00007f2d4f616000]
java.lang.Thread.State: RUNNABLE
at com.romix.scala.collection.concurrent.TrieMap.RDCSS_Complete(TrieMap.java:1115)
at com.romix.scala.collection.concurrent.TrieMap.RDCSS_ROOT(TrieMap.java:1143)
at com.romix.scala.collection.concurrent.TrieMap.clear(TrieMap.java:1285)

2013-08-06 19:41:05
Full thread dump Java HotSpot(TM) 64-Bit Server VM (23.25-b01 mixed mode):

"test-runner" prio=10 tid=0x00007f2d609d9800 nid=0x5cc7 runnable [0x00007f2d4f616000]
java.lang.Thread.State: RUNNABLE
at com.romix.scala.collection.concurrent.TrieMap.clear(TrieMap.java:1285)
at org.gridgain.grid.lang.utils.GridTrieMapSelfTest.testClear(GridTrieMapSelfTest.java:96)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)

java -version
java version "1.7.0_25"
Java(TM) SE Runtime Environment (build 1.7.0_25-b15)
Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode)

OS: ubuntu 12.04

Yakov

V get (Object k) returns Some instead of V

We run into situations when subj. returns Some instance instead of V.

I'm now working on isolated test case, but quick look suggest that there could be an obvious bug. Method 'get' performs lookuphc and return result just casting it to V. In the same time method 'lookup' performs the same call and checks whether the value is an Option or not.

May be get should work the same as lookup?

Serializable

Any reason why the TrieMap port is not marked Serializable? The TrieMap from scala.concurrent is.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.