Skip to content

Conversation

maciejdudko
Copy link
Contributor

@maciejdudko maciejdudko commented Oct 1, 2025

What was changed

temporalio/sdk-core#1025 changes the design of custom slot supplier in C bridge to fix memory corruption issues. This PR adapts SDK code to these changes.

Why?

Fixes memory corruption bug.

Checklist

  1. Closes [Bug] Issues with ReserveCtxFromBridge #458

  2. How was this tested:

There is no test for the original bug. Due to the nature of this bug, it's impossible to write a test that reliably triggers the problematic conditions. The fix can be verified over time by the lack of transient CI failures caused by this bug.

General functionality of the custom slot supplier is tested by pre-existing tests.

Copy link
Member

@cretz cretz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly LGTM, just a couple of minor comments

@maciejdudko maciejdudko force-pushed the bridge-custom-slot-supplier-rework branch from 51fff70 to 6708a09 Compare October 9, 2025 18:55
@maciejdudko maciejdudko merged commit 75baab8 into temporalio:main Oct 10, 2025
14 of 15 checks passed
@maciejdudko maciejdudko deleted the bridge-custom-slot-supplier-rework branch October 10, 2025 14:01
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

Successfully merging this pull request may close these issues.

[Bug] Issues with ReserveCtxFromBridge

2 participants