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

implement NativeFinalizers in Realm #1044

Merged
merged 4 commits into from
Nov 25, 2022
Merged

Conversation

blagoev
Copy link
Contributor

@blagoev blagoev commented Nov 24, 2022

implement NativeFinalizers in Realm cause the Dart VM NativeFinalizers have an issue which causes the Dart GC to run too often cause of a bug while collecting memory.
Dart VM issue here dart-lang/sdk#50537

… issue which causes the Dart GC to run too often cause of a bug while collecting memory.
@cla-bot cla-bot bot added the cla: yes label Nov 24, 2022
@@ -85,6 +85,11 @@ class _RealmCore {
static const libraryVersion = '0.7.0+rc';
late String nativeLibraryVersion = _realmLib.realm_dart_library_version().cast<Utf8>().toDartString();

// for debugging only. Enable in realm_dart.cpp
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should we leave this commented out here for the future?

@blagoev blagoev added the no-changelog Used to skip the changelog check label Nov 24, 2022
@coveralls
Copy link

coveralls commented Nov 24, 2022

Pull Request Test Coverage Report for Build 3541339093

  • 2 of 2 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.03%) to 89.021%

Totals Coverage Status
Change from base Build 3481727788: 0.03%
Covered Lines: 2765
Relevant Lines: 3106

💛 - Coveralls

src/realm_dart.cpp Outdated Show resolved Hide resolved
@blagoev blagoev marked this pull request as ready for review November 24, 2022 22:52
@blagoev blagoev merged commit d9d04e1 into master Nov 25, 2022
@blagoev blagoev deleted the fix-perf-native-finalizers branch November 25, 2022 07:57
@blagoev blagoev self-assigned this Nov 25, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes no-changelog Used to skip the changelog check
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants