Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
yzhdanov opened this issue Aug 7, 2013 · 0 comments
Closed

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

yzhdanov opened this issue Aug 7, 2013 · 0 comments

Comments

@yzhdanov
Copy link

yzhdanov commented Aug 7, 2013

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

@romix romix closed this as completed in f64321d Nov 7, 2013
romix added a commit that referenced this issue Nov 7, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant