Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
/enginePublic archive

Wrap the iOS platform message handler in an autorelease pool block#40373

Merged
auto-submit[bot] merged 1 commit intoflutter:mainfrom
jason-simmons:bug_122792
Mar 17, 2023
Merged

Wrap the iOS platform message handler in an autorelease pool block#40373
auto-submit[bot] merged 1 commit intoflutter:mainfrom
jason-simmons:bug_122792

Conversation

@jason-simmons
Copy link
Member

With background platform isolate channels, the handler can be invoked on threads that are created by Dart and do not already have an autorelease pool.

Fixesflutter/flutter#122792

With background platform isolate channels, the handler can be invokedon threads that are created by Dart and do not already have anautorelease pool.Fixesflutter/flutter#122792
@flutter-dashboard
Copy link

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you needan exemption to this rule, contact Hixie on the #hackers channel inChat (don't just cc him here, he won't see it!He's on Discord!).

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself,is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read theTree Hygiene page and make sure this patch meets those guidelines before LGTMing.

Copy link
Member

@gaaclarkegaaclarke left a comment

Choose a reason for hiding this comment

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

I think there should be runtime warnings getting printed out if you are adding objects to the autorelease pool but there isn't one present.

If you want to add a test for this it wouldn't be that hard. Inplatform_message_handler_ios_test.mm you could make an NSObject that takes in a pointer to a bool and sets it's value in its dealloc. Then you can assert that dealloc was called.

@jason-simmonsjason-simmons added the autosubmitMerge PR when tree becomes green via auto submit App labelMar 17, 2023
@auto-submitauto-submitbot merged commit2cd19e3 intoflutter:mainMar 17, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull requestMar 17, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull requestMar 17, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull requestMar 17, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull requestMar 17, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull requestMar 17, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull requestMar 17, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull requestMar 18, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull requestMar 18, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull requestMar 18, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull requestMar 18, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull requestMar 18, 2023
zanderso pushed a commit to flutter/flutter that referenced this pull requestMar 18, 2023
*e6334f1 [web] Remove image codecs from Canvaskit Chromium (flutter/engine#40309)*56727d6 Revert "[Impeller] mark decoded images as optimized for GPU access (#40356)" (flutter/engine#40387)*2cd19e3 Wrap the iOS platform message handler in an autorelease pool block (flutter/engine#40373)*bab7853 Update analyzer for api_conform_test (flutter/engine#40386)*87b2e82 Roll Fuchsia Mac SDK from z32cF6YFs6CvZbY3g... to 4ZrEK2uzGdp_Gz3DU... (flutter/engine#40385)*fc57995 Ignore some MTLCompiler failures in impeller unit tests (flutter/engine#40391)*2398c52 Add doc comment to Pipeline (flutter/engine#40388)*f585d4b [macOS] Remove a single accessibility root assumption (flutter/engine#40316)*940cf3c remove temporary flag and make FlutterTest the default font for real (flutter/engine#40352)*a1bf9fd drawTextBlob should not be compatible with opacity inheritance (flutter/engine#40396)*55bf0d8 Use bundled analyzer everywhere (flutter/engine#40398)*8e58041 Roll Skia from 9bfb45d3e065 to 49b902e5fb91 (11 revisions) (flutter/engine#40397)*77c53d2 Default the CanvasKit base URL to local artifacts. (flutter/engine#40293)*625ea53 Roll Skia from 49b902e5fb91 to aa983f5486f0 (7 revisions) (flutter/engine#40404)*867679f [Impeller] Add playground flag to render for a specific amount of time. (flutter/engine#40377)*d741696 [Impeller] Remove unused bounds method from typographer interface (flutter/engine#40406)*941323d Provisional iOS impeller flag flip (flutter/engine#40405)*bb971ab Revert "Default the CanvasKit base URL to local artifacts. (#40293)" (flutter/engine#40415)
zanderso pushed a commit to engine-flutter-autoroll/flutter that referenced this pull requestMar 18, 2023
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

1 more reviewer

@gaaclarkegaaclarkegaaclarke approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

autosubmitMerge PR when tree becomes green via auto submit Appneeds testsplatform-ios

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

BackgroundIsolateBinaryMessenger leak memory on IOS

2 participants

@jason-simmons@gaaclarke

Comments


[8]ページ先頭

©2009-2026 Movatter.jp