[debugger] IJPL-197192 Fix value ready status: consider ready to use only after #setContext

This fixes mark object issue. There was a race between #setAncestor, marks collection, and #setContext

GitOrigin-RevId: 4d7a17b26179c6d234bcbcb107abdb4bd4585a62
This commit is contained in:
Maksim Zuev
2025-08-26 16:20:56 +00:00
committed by intellij-monorepo-bot
parent 4a6c54ce7e
commit 79121039b7
@@ -297,7 +297,7 @@ public abstract class ValueDescriptorImpl extends NodeDescriptorImpl implements
ValueDescriptorImpl other = (ValueDescriptorImpl)oldDescriptor;
if (other.isValueReady()) {
myValue = other.getValue();
myInitFuture.complete(null);
// Do not mark myInitFuture as completed until the correct value is computed in #setContext
}
}
}