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

Hide Java stdlib collections impelementation details in the trace #515

Open
eupp opened this issue Feb 10, 2025 · 1 comment
Open

Hide Java stdlib collections impelementation details in the trace #515

eupp opened this issue Feb 10, 2025 · 1 comment
Assignees
Milestone

Comments

@eupp
Copy link
Collaborator

eupp commented Feb 10, 2025

Consider the following example:

var counter = 0
val map = ConcurrentHashMap<String, Int>()
map.computeIfAbsent("abc") {
    counter++
}

Currently, if a lincheck test fails in such a case, it would also output in the trace all the implementation details of the concurrent hash map (or any other stdlib collection). These details typically would not be relevant to the user (assuming bug occurs in user code, and not in the Java stdlib classes themself).

We need to improve on this, and do not show these details by default to the user.

Depends on #501 and #506

@eupp
Copy link
Collaborator Author

eupp commented Feb 10, 2025

Related issue #506

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants