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

Fix appsignal_free_* FFI missing pointer arguments #856

Merged
merged 1 commit into from
Jul 22, 2022

Conversation

tombruijn
Copy link
Member

The appsignal_free_transaction and appsignal_free_data Rust
extension function calls were missing their argument definitions in the
FFI declaration.

These are the function definitions from the appsignal.h file,
downloaded upon installation.

void appsignal_free_transaction(appsignal_transaction_t*);
void appsignal_free_data(appsignal_data_t*);

Fixes #854 where users saw very high CPU usage because the function call
was being retried indefinitely.

Co-authored-by: Raimonds Simanovskis raimonds.simanovskis@gmail.com

The `appsignal_free_transaction` and `appsignal_free_data` Rust
extension function calls were missing their argument definitions in the
FFI declaration.

These are the function definitions from the `appsignal.h` file,
downloaded upon installation.

```c
void appsignal_free_transaction(appsignal_transaction_t*);
void appsignal_free_data(appsignal_data_t*);
```

Fixes #854 where users saw very high CPU usage because the function call
was being retried indefinitely.

Co-authored-by: Raimonds Simanovskis <raimonds.simanovskis@gmail.com>
@tombruijn tombruijn merged commit e555a81 into main Jul 22, 2022
@tombruijn tombruijn deleted the jruby-free-missing-pointer branch July 31, 2023 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Invalid FFI::AutoPointer is causing infinite loop in Finalizer thread starting from JRuby 9.3.4
2 participants