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

Tests GC realm pointer release #1542

Merged
merged 3 commits into from
Oct 13, 2023
Merged

Conversation

clementetb
Copy link
Contributor

@clementetb clementetb commented Oct 11, 2023

Adds a test case to catch whether we are releasing realm pointers.

@clementetb clementetb marked this pull request as ready for review October 11, 2023 16:49
Copy link
Contributor

@cmelchior cmelchior left a comment

Choose a reason for hiding this comment

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

A small recommendation to make the test more stable, but otherwise this looks good 👍

@@ -57,63 +55,6 @@ class MemoryTests {
deleteTempDir(tmpDir)
}

// TODO Only run on macOS, filter using https://developer.apple.com/documentation/foundation/nsprocessinfo/3608556-iosapponmac when upgrading to XCode 12
Copy link
Contributor

@rorbech rorbech Oct 13, 2023

Choose a reason for hiding this comment

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

Why are we removing this test? The other test is only verifying that garbage collecting of our native pointer wrapper is actually causing a realm_release but that is just a subset of ensuring that we actually release all resource and close the realm when not referencing a realm anymore.

@clementetb clementetb merged commit e0ad270 into releases Oct 13, 2023
2 checks passed
@clementetb clementetb deleted the ct/test-native-pointer-release branch October 13, 2023 11:21
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants