Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@0xZOne
Copy link
Member

@0xZOne 0xZOne commented Feb 6, 2024

This fixes the memory leak in ChildClippingView.

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the Flutter Style Guide and the C++, Objective-C, Java style guides.
  • I listed at least one issue that this PR fixes in the description above.
  • I added new tests to check the change I am making or feature I am adding, or the PR is test-exempt. See testing the engine for instructions on writing and running engine tests.
  • I updated/added relevant documentation (doc comments with ///).
  • I signed the CLA.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@0xZOne 0xZOne marked this pull request as draft February 6, 2024 06:25
@0xZOne 0xZOne force-pushed the task/oc_mem branch 3 times, most recently from 947e412 to 76217ea Compare February 6, 2024 07:44
@0xZOne 0xZOne marked this pull request as ready for review February 6, 2024 07:47
@0xZOne 0xZOne requested a review from cyanglaz February 6, 2024 07:49
@0xZOne 0xZOne force-pushed the task/oc_mem branch 2 times, most recently from 5fc1bb5 to 17b19d5 Compare February 6, 2024 08:28
@0xZOne 0xZOne changed the title Fix memory leak in ChildClippingView [ios] Fix memory leak in ChildClippingView Feb 6, 2024
@0xZOne 0xZOne force-pushed the task/oc_mem branch 3 times, most recently from 5500abe to fd3f7cd Compare February 7, 2024 02:43
@jmagman jmagman requested review from hellohuanlin and jmagman and removed request for cyanglaz February 7, 2024 21:52
@hellohuanlin
Copy link
Contributor

@jmagman it's worth checking if this helps improving the platform view performance issue we are having.

Copy link
Contributor

@hellohuanlin hellohuanlin left a comment

Choose a reason for hiding this comment

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

LGTM. Could you hold off landing it for now? we are having some perf issues with the platform view, and it may worth checking if this helps.

}

- (void)testReleasesBackdropFilterSubviewsOnChildClippingViewDealloc {
__weak NSMutableArray<UIVisualEffectView*>* weakBackdropFilterSubviews = nil;
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: snake case

Copy link
Member

Choose a reason for hiding this comment

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

Hm, why would this Objective-C local be snake case?

Copy link
Contributor

Choose a reason for hiding this comment

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

oh because i saw clipping_view below is snake case. maybe that should be camel case?

Copy link
Member

Choose a reason for hiding this comment

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

Yeah that one should have been camel case.

}

- (void)testReleasesBackdropFilterSubviewsOnChildClippingViewDealloc {
__weak NSMutableArray<UIVisualEffectView*>* weakBackdropFilterSubviews = nil;
Copy link
Member

Choose a reason for hiding this comment

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

Hm, why would this Objective-C local be snake case?

@jmagman
Copy link
Member

jmagman commented Feb 8, 2024

we are having some perf issues with the platform view, and it may worth checking if this helps.

We aren't (currently) investigating memory leaks, I don't think we need to hold off on this.

@0xZOne 0xZOne added the autosubmit Merge PR when tree becomes green via auto submit App label Feb 8, 2024
@auto-submit auto-submit bot merged commit 104804a into flutter:main Feb 8, 2024
@0xZOne 0xZOne deleted the task/oc_mem branch February 8, 2024 01:48
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Feb 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

autosubmit Merge PR when tree becomes green via auto submit App platform-ios

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants