Skip to content

AtWithRho.java's get() method is not functioning as expected #4692

@0pdd

Description

@0pdd

The puzzle 4673-7841412b from #4673 has to be resolved:

* @todo #4673:30min The {@link AtWithRho#get()} is not thread safe. If multiple threads
* call get() concurrently when the underlying object lacks RHO, each thread will:
* 1. Pass the !ret.hasRho() check
* 2. Create its own copy via ret.copy()
* 3. Attempt to set RHO on its copy
* This results in different threads receiving different copies, violating the expectation
* that get() returns a consistent view of the attribute's value.

The puzzle was created by Rultor.com on 25-Nov-25.

Estimate: 30 minutes, role: DEV.

If you have any technical questions, don't ask me, submit new tickets instead. The task will be "done" when the problem is fixed and the text of the puzzle is removed from the source code. Here is more about PDD and about me.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions