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

add GC.@preserve to tests #56

Merged
merged 1 commit into from
Jun 23, 2024
Merged

add GC.@preserve to tests #56

merged 1 commit into from
Jun 23, 2024

Conversation

nhz2
Copy link
Member

@nhz2 nhz2 commented Jun 20, 2024

This PR adds GC preserve to places where pointer is used. The Memory(::Vector{UInt8}) method internally uses pointer and does not protect its arguments from GC, so I am replacing these with explicit calls to pointer to clarify this.

Ref: JuliaIO/TranscodingStreams.jl#219

Copy link

codecov bot commented Jun 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.21%. Comparing base (55c2c42) to head (7ef0a07).

Additional details and impacted files
@@           Coverage Diff           @@
##           master      #56   +/-   ##
=======================================
  Coverage   98.21%   98.21%           
=======================================
  Files           8        8           
  Lines         393      393           
=======================================
  Hits          386      386           
  Misses          7        7           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@nhz2
Copy link
Member Author

nhz2 commented Jun 23, 2024

I'm going to merge this since it only changes tests.

@nhz2 nhz2 merged commit 4f14cf1 into master Jun 23, 2024
9 checks passed
@nhz2 nhz2 deleted the nz/add-GC-preserve-to-tests branch June 23, 2024 14:41
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