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

Names of variables that are written/read through AtomicReference are not displayed in trace #317

Closed
avpotapov00 opened this issue Apr 30, 2024 · 1 comment
Assignees

Comments

@avpotapov00
Copy link
Collaborator

As the AtomicReference doesn't receive a string name of a variable to read/write it, Lincheck currently can't provide its name. The goal is to fix it.

@ndkoval
Copy link
Collaborator

ndkoval commented Apr 30, 2024

To determine the related field, you can analyze the tested object and find all the fields referencing the specified AtomicReference (or AtomicInteger, AtomicLong, etc) instance. In case there is only one such reference, you can safely present the field name.

Thus, instead of

get()

you will print

Node#1.id.get()

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

2 participants