Skip to content

Commit

Permalink
Huge refactoring
Browse files Browse the repository at this point in the history
* Remove `libtest` module but keep some of the tests from it
* Make the project a single-module one
* Add `AbstractLincheckTest` abstraction to manage most of the tests in a single place and write them easier
* Rewrite some of the code into Kotlin
* Reuse verifiers properly
* Handle deadlocks/livelocks and unexpected exceptions properly
* etc
  • Loading branch information
ndkoval committed Apr 15, 2020
1 parent 8ad0d94 commit 854dde3
Show file tree
Hide file tree
Showing 279 changed files with 1,464 additions and 27,908 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -406,15 +406,15 @@ public class HashMapLinearizabilityTest extends VerifierState {
```
= Invalid execution results =
Init part:
[put(1,2): null, put(4,6): null, get(5): null, put(3,-6): null, put(1,-8): 2]
[put(1, 2): null, put(4, 6): null, get(5): null, put(3, -6): null, put(1, -8): 2]
Parallel part:
| get(4): 6 | put(2,1): null |
| get(2): 1 [1,0] | put(5,4): null [1,1] |
| put(5,-8): null [2,1] | get(3): 5 [5,2] |
| get(3): -6 [3,1] | get(4): 6 [5,3] |
| put(3,5): -6 [4,1] | put(1,-4): -8 [5,4] |
| get(4): 6 | put(2, 1): null |
| get(2): 1 [1,-] | put(5, 4): null [1,1] |
| put(5, -8): null [2,1] | get(3): 5 [5,2] |
| get(3): -6 [3,1] | get(4): 6 [5,3] |
| put(3, 5): -6 [4,1] | put(1, -4): -8 [5,4] |
Post part:
[put(5,-8): 4, put(5,-2): -8, get(1): -4, put(2,-8): 1, get(1): -4]
[put(5, -8): 4, put(5, -2): -8, get(1): -4, put(2, -8): 1, get(1): -4]
---
values in "[..]" brackets indicate the number of completed operations
in each of the parallel threads seen at the beginning of the current operation
Expand Down
59 changes: 0 additions & 59 deletions libtest/pom.xml

This file was deleted.

This file was deleted.

This file was deleted.

35 changes: 0 additions & 35 deletions libtest/src/main/java/com/github/lock/free/queue/Node.java

This file was deleted.

31 changes: 0 additions & 31 deletions libtest/src/main/java/com/github/lock/free/queue/SimpleQueue.java

This file was deleted.

This file was deleted.

Loading

0 comments on commit 854dde3

Please sign in to comment.