Skip to content

Fixed memory corruption issues in CustomSlotSupplier#532

Merged
maciejdudko merged 7 commits intotemporalio:mainfrom
maciejdudko:bridge-custom-slot-supplier-rework
Oct 10, 2025
Merged

Fixed memory corruption issues in CustomSlotSupplier#532
maciejdudko merged 7 commits intotemporalio:mainfrom
maciejdudko:bridge-custom-slot-supplier-rework

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
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