Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[531] Fix stdcall callback calling convention #533

Merged
merged 1 commit into from
Dec 4, 2015

Conversation

twall
Copy link
Contributor

@twall twall commented Nov 8, 2015

Ensures that any calling convention set in library options gets propagated to callbacks.

Also includes non-direct callbacks in forced memory reclamation.

Fixes issue #531

}
cbstruct = peer != 0 ? new Pointer(peer) : null;
allocatedMemory.put(this, new WeakReference(this));
Copy link
Contributor Author

Choose a reason for hiding this comment

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

For some reason this code was previously only tracking direct-mapped callbacks. I don't think that was intentional, so moving it here to consistently track all allocated callback structures.

@twall twall force-pushed the 531-callback-cc-from-options branch from 56c7400 to f2c2b4e Compare December 4, 2015 10:41
twall added a commit that referenced this pull request Dec 4, 2015
…options

[531] Fix stdcall callback calling convention
@twall twall merged commit de5316d into master Dec 4, 2015
@twall twall deleted the 531-callback-cc-from-options branch December 4, 2015 10:47
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.

1 participant