[pipelineX](fix) Fix use-after-free MultiCastSourceDependency (#30199)

This commit is contained in:
Gabriel
2024-01-23 10:32:06 +08:00
committed by yiguolei
parent 7be9301360
commit 0e5d56fc2e
15 changed files with 170 additions and 28 deletions

View File

@ -3985,7 +3985,9 @@ public class Coordinator implements CoordInterface {
if (enablePipelineEngine) {
for (PipelineExecContext ctx : pipelineExecContexts.values()) {
if (enablePipelineXEngine) {
ctx.attachPipelineProfileToFragmentProfile();
synchronized (this) {
ctx.attachPipelineProfileToFragmentProfile();
}
} else {
ctx.profileStream()
.forEach(p -> executionProfile.addInstanceProfile(ctx.profileFragmentId, p));