578 Commits

Author SHA1 Message Date
gaaclarke
968e18b66e Removed error log statement for dart plugin registrant. (flutter/engine#32321) 2022-03-30 13:40:04 -07:00
gaaclarke
237c111725 Dart Plugin Registrant - Reland e525aced2737 (flutter/engine#32189) 2022-03-23 18:20:05 -07:00
gaaclarke
8057786ee4 Revert "Started looking for the dart plugin registrant at runtime (#31418)" (flutter/engine#32162)
This reverts commit e525aced2737dffaae17d0bb9619783abfe117cf.
2022-03-21 13:42:07 -07:00
gaaclarke
eb45cf1c9d Fixed image generator registry usage with spawn. (flutter/engine#31622) 2022-03-17 13:10:11 -07:00
gaaclarke
70271f2263 Add Dart entrypoint to execute the dart plugin registrant. (flutter/engine#31720)
* Adds Dart entrypoint to execute the dart plugin registrant.

* added negative test and added web ui interface

* removed linter warning
2022-03-02 17:50:23 -08:00
gaaclarke
9b0587193e added dart plugin registrant test executables to run_tests.py (flutter/engine#31726) 2022-02-28 19:51:57 -08:00
gaaclarke
e525aced27 Started looking for the dart plugin registrant at runtime (flutter/engine#31418) 2022-02-28 15:50:55 -08:00
Ryan Macnak
8b133f69ea Label ConcurrentMessageLoop worker threads for the Dart VM. (flutter/engine#31168) 2022-02-17 13:14:10 -08:00
Siva
1cf55bbfd6 Revert mark idle (flutter/engine#31487)
* Turn off mark_when_idle option as it appears to cause a regression.
We can turn it back on once we investigate the cause and fix it.

* Format.
2022-02-15 18:47:20 -08:00
Zachary Anderson
eca60c0b90 Add clang-analyzer-* and clang-diagnostic-* to .clang-tidy (flutter/engine#31291) 2022-02-09 12:26:34 -08:00
Martin Kustermann
fa5e12d50a Fix incorrect handling of error handling in case an isolate initialization fails (flutter/engine#31207)
For isolates spawned by the application via `Isolate.spawn()`ed, the VM
will create a "lightweight" isolate and invoke the `initialize_isolate`
embedder callback to initialize it.

The embedder-provided callback will be invoked with the active isolate
and is expected to return with that active isolate - irrespective of
whether it succeeded to initialize or not.
=> The unsuccessful path was using `Dart_ExitIsolate()` - which is
   incorrect.

This PR fixes that by not exiting the isolate. As a side-effect of the
fix, we also do less `Dart_EnterIsolate()`/`Dart_ExitIsolate()` calls in
initialization (which makes it faster) and handle failure to spawn the
root isolate. Furthermore this PR removes some dead code and replaces it
with `FML_DCHECK()`s instead.

The PR adds a test that will set the root library to null which will make the
engine fail initializing of the isolate and therefore trigger this error handling
path.

Fixes https://github.com/flutter/flutter/issues/90478
2022-02-07 08:21:47 +01:00
Ryan Macnak
ac6374ce77 Enable incremental marking during idle time. (flutter/engine#31167) 2022-02-01 09:21:13 -08:00
eggfly
42cc820c92 Cleanup unused code in the UIDartState and other tests. (flutter/engine#31152) 2022-01-31 18:20:02 -08:00
Brandon DeRosier
925224a9ee Prefix remaining OS defines with FML_ namespace (flutter/engine#31172) 2022-01-31 14:31:44 -08:00
Brandon DeRosier
2d4f908b9d Add FML_ prefix to fml/build_config.h macros (flutter/engine#31141) 2022-01-31 11:53:51 -08:00
Siva
f31c8eb26c Add option to enable serial GC (flutter/engine#30975)
* Roll Dart SDK from e256855d07ba to a3b62f366529 (4 revisions) (#21809)

* Roll Dart SDK from e655b9a3839e to b58cfe5ab24e (1 revision) (#21920)

* Roll Dart SDK from fc82eeed7df3 to 8be6a08153cc (1 revision) (#22005)

* Roll Dart SDK from fe12b0536f42 to a188781c9fc8 (1 revision) (#22379)

* Roll Skia from 95b5fb9213d7 to 68ac3b9ec3ca (17 revisions) (#22713)

* Roll Dart SDK from 2c74e62a050c to f9760fc12871 (5 revisions) (#22881)

* Roll Dart SDK from 68d1c7504f7d to f166571c7bc4 (1 revision) (#23056)

* Roll Dart SDK from 970d74c42472 to fd72dbb5b82b (1 revision) (#23820)

* Trigger an engine build to re-open the tree (#26056)

This commit is empty and simply triggers a new build to open the tree.

Commit e9ca785106ddc672d945062758800bdf1dd0aa68 was re-built after a
succesful build; upload to the cloud storage bin failed.

* Roll Skia from d9a7c5953df3 to 827bb729a84d (2 revisions) (#26096)

* Roll Dart SDK from d616108772bd to a527411e5100 (0 revision) (#26156)

* Roll Dart SDK from bb9d96ffbafa to 7250fd6379b2 (0 revision) (#26374)

* Roll Dart SDK from 202c42e3395c to 2e9c4305a6aa (1 revision) (#26578)

* Roll buildroot to 275038b8be7196927b0f71770701f3c2c3744860 (#26945)

* [test] empty commit (#27599)

https://flutter-review.googlesource.com/c/infra/+/15660

* Roll Dart SDK from e1414001c93b to 686070850ee3 (1 revision) (#27620)

* Empty commit to apply latest LUCI config (#27767)

* Roll Dart SDK from 3b11f88c96a5 to 976f160b547f (3 revisions) (#29436)

* Empty commit to fix main tree status (#29760)

* Add option to enable serial GC
This option can be used to avoid thread contention issues for the UI thread when running on low power devices with limited number of cores.

* Fix format.

* Added test.

* Add build rule.

* Address review comments.

Co-authored-by: skia-flutter-autoroll <skia-flutter-autoroll@skia.org>
Co-authored-by: Chris Bracken <chris@bracken.jp>
Co-authored-by: Casey Hillers <chillers@google.com>
2022-01-25 17:06:18 -08:00
ColdPaleLight
b64598bef6 Refactor type of deadline in the method NotifyIdle to fml::TimePoint (flutter/engine#30737) 2022-01-19 17:25:09 -08:00
Alexander Aprelev
b6176f8901 Remove use of '--enable-isolate-groups' dart vm flag. (flutter/engine#30839)
The flag was removed after isolate groups were enabled by default.

Fixes https://github.com/flutter/flutter/issues/95331
2022-01-13 09:11:45 -08:00
ColdPaleLight
fdcc6befe9 Use the correct Settings in Engine::Spawn (flutter/engine#30741)
* Use the correct Settings in Engine::Spawn

* Add unit tests
2022-01-12 10:31:28 -08:00
ColdPaleLight
99ae1b775f Remove AOT specific gates for isolate groups (flutter/engine#30743) 2022-01-07 10:05:10 -08:00
Alexander Biggs
da7796c917 Remove unused SpawnIsolate function. (flutter/engine#30364)
This function is only used by a single unit test and makes it more difficult to read how isolates get created on different platforms.
2021-12-21 14:53:47 -05:00
Ryan Macnak
0f89ed5b2a Revert "Run Dart VM tasks on the engine's ConcurrentMessageLoop instead the VM's separate thread pool. (#29819)" (flutter/engine#30332) 2021-12-14 17:39:08 -08:00
Ryan Macnak
b0eb8bca65 Run Dart VM tasks on the engine's ConcurrentMessageLoop instead the VM's separate thread pool. (flutter/engine#29819)
Bug: https://github.com/dart-lang/sdk/issues/44228
2021-12-01 11:53:27 -08:00
eggfly
6b1d2dcdbc Share the io_manager between parent and spawn engine (flutter/engine#29915) 2021-12-01 10:34:01 -08:00
eggfly
b87bbe9bc9 Fix typo and clean some includes (flutter/engine#29940) 2021-11-29 09:34:38 -08:00
eggfly
d18f5c8223 Reset viewport_metrics when spawn new Engine (flutter/engine#29876)
Co-authored-by: zsunkun <zsunkun@163.com>
2021-11-24 09:49:08 -08:00
ColdPaleLight
742a3dc7d8 Remove the dart entry point args from the Settings struct (flutter/engine#29831) 2021-11-22 18:43:02 -08:00
ColdPaleLight
9ecd4c1899 Make FlutterEngineGroup support dart entrypoint args (flutter/engine#29096) 2021-11-18 18:08:03 -08:00
Tong Mu
5183c56533 [Embedder] Send key data through message channel (flutter/engine#29795)
This PR changes how embedder API's SendKeyData sends ui.KeyData to the framework. The packets are now sent over the existing platform messenger, reusing the entirety of its code path and functionalities while keeping the embedder API unchanged
2021-11-18 17:53:28 -08:00
Zachary Anderson
78d9e276e2 Fix some clang-tidy lints for Linux host_debug (flutter/engine#29734) 2021-11-18 13:08:01 -08:00
Zachary Anderson
03c0f7e453 Add 'explicit' to header files (flutter/engine#29741) 2021-11-17 12:49:16 -08:00
Jenn Magder
dbe42683b9 Fix 'google-readability-braces-around-statements' analyzer warning in macOS and iOS (flutter/engine#29723) 2021-11-12 18:42:29 -08:00
Jason Simmons
ed52d1d708 Fix isolate_configuration typo (flutter/engine#29318) 2021-11-04 10:48:01 -07:00
Ryan Macnak
1dfe28a310 Inform the Dart VM when snapshots are safe to use with madvise(DONTNEED). (flutter/engine#29320)
Bug: https://github.com/dart-lang/sdk/issues/44019
Bug: https://github.com/flutter/flutter/issues/92120
2021-10-28 16:53:41 -07:00
Ahmed Ashour
acdc8a5c8b Fix typos (flutter/engine#29280) 2021-10-27 20:30:31 -07:00
Jason Simmons
2c8702d096 Build a specialized snapshot for launching the service isolate in profile mode on Android (flutter/engine#29245) 2021-10-27 11:03:01 -07:00
Ben Konyi
1ca50b882d Set default profiling rate on iOS 32 bit devices to 500Hz (flutter/engine#29347)
* Set default profiling rate on iOS 32 bit devices to 500Hz

The current default profiling rate is 1000Hz in the VM.

Fixes https://github.com/flutter/flutter/issues/92421.

* Address comments
2021-10-26 17:55:44 -07:00
Dan Field
f1dae7ad34 Delay default font manager to run concurrently with isolate setup (flutter/engine#29291)
* Delay default font manager to run concurrently with isolate setup

* test
2021-10-21 16:20:32 -07:00
Dan Field
293ef51fc6 Reland Android systrace (flutter/engine#29080)
* Reland "Use the systrace recorder if systracing is enabled at startup, and enable systracing in release mode on Android (#28903)" (#29071)"

This reverts commit a7660964b41f64991369341364a43c93317a4a51.

* More logcat

* more logs

* Remove wait

* Avoid plugin registrar exception

* DEFAULT instead of LAUNCHER

* use am instead of monkey

* Update android_systrace_test.py
2021-10-08 15:55:50 -07:00
Zachary Anderson
a7660964b4 Revert "Use the systrace recorder if systracing is enabled at startup, and enable systracing in release mode on Android (#28903)" (flutter/engine#29071)
This reverts commit 79063b3c6105c3cf8be757ed6d31dd9a055060d9.
2021-10-07 22:08:10 -07:00
Dan Field
79063b3c61 Use the systrace recorder if systracing is enabled at startup, and enable systracing in release mode on Android (flutter/engine#28903) 2021-10-07 15:59:46 -07:00
Brandon DeRosier
355c1809f0 Remove outdated unused element suppressions (flutter/engine#28775)
Fixes flutter/flutter#35164
2021-09-23 13:14:09 -07:00
Kaushik Iska
3ea49f1530 Reland "Add benchmarks to measure dart -> native time (#28492)" (flutter/engine#28726) 2021-09-20 15:13:02 -07:00
David Worsham
657b63f499 fuchsia: Convert vulkanb headers to DEPS (flutter/engine#28676) 2021-09-16 22:39:06 -07:00
Kaushik Iska
3cbb40e6ea Revert "Add benchmarks to measure dart -> native time (#28492)" (flutter/engine#28513) 2021-09-08 12:24:43 -07:00
Kaushik Iska
559cc49517 Reland "Add benchmarks to measure dart -> native time (#28492)" (flutter/engine#28510)
This reverts commit f23eeaba7a6edef97cae5693cdbeb66ce05d2493.
2021-09-08 11:24:09 -07:00
Chinmay Garde
f23eeaba7a Revert "Add benchmarks to measure dart -> native time (#28492)" (flutter/engine#28509)
This reverts commit db55f9274993a34bb6a0c81cc377cde54bb585d7.
2021-09-08 10:33:54 -07:00
Kaushik Iska
db55f92749 Add benchmarks to measure dart -> native time (flutter/engine#28492) 2021-09-08 09:17:01 -07:00
Alexander Aprelev
227d3fa4b7 Ensure correct child isolate initialization in enable-isolate-groups dart vm configuration. (flutter/engine#26011)
* Ensure child isolate doesn't load kernel

* Guard changes to isolate initialization by enable-isolate-groups flag check
2021-08-02 07:57:49 -07:00
Kaushik Iska
a3b9412f5c Set AppStartUp UserTag from engine (flutter/engine#27646) 2021-07-23 13:31:02 -07:00