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

Conversation

@chinmaygarde
Copy link
Member

The service isolate creation callback may occur on a background thread before
the call the Dart_Initialize within the DartVM construtor can finish. We store
pointers to various snapshots within the DartVM object. These snapshots are
necessary for to successfully create the service isolate. The isolate creation
callback access the global object within the ForProcessIfInitialized method.
This method can return null if the VM object has not been initialized. This
leads to the service protocol failing to start in a non-deterministic manner.
This patch moves the creation and access of the DartVM object within a critical
section.

…e constructor access the VM object.

The service isolate creation callback may occur on a background thread before
the call the Dart_Initialize within the DartVM construtor can finish. We store
pointers to various snapshots within the DartVM object. These snapshots are
necessary for to successfully create the service isolate. The isolate creation
callback access the global object within the ForProcessIfInitialized method.
This method can return null if the VM object has not been initialized. This
leads to the service protocol failing to start in a non-deterministic manner.
This patch moves the creation and access of the DartVM object within a critical
section.
@chinmaygarde chinmaygarde merged commit 2f19645 into flutter:master Aug 15, 2018
@chinmaygarde chinmaygarde deleted the race branch August 15, 2018 22:26
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Aug 15, 2018
flutter/engine@e3687f7...2f19645

git log e3687f7..2f19645 --date=short --no-merges --format='%%ad %%ae %%s'
2018-08-15 [email protected] Wait for Dart VM initialization before the letting the service isolate constructor access the VM object. (flutter/engine#6028)
2018-08-15 [email protected] Re-apply "Log Tonic errors with FML_LOG" (flutter/engine#6026)
2018-08-15 37626415+[email protected] Roll src/third_party/skia 31a0944bb30b..e49966c983ec (8 commits) (flutter/engine#6027)
2018-08-15 [email protected] Update docker image tag and README (flutter/engine#5995)
2018-08-15 [email protected] Add message encoding/decoding utility to FML. (flutter/engine#6017)

The AutoRoll server is located here: https://flutter-engine-flutter-roll.skia.org

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md

If the roll is causing failures, please contact the current sheriff, who should
be CC'd on the roll, and stop the roller if necessary.
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Aug 16, 2018
flutter/engine@e3687f7...36aa0ed

git log e3687f7..36aa0ed --date=short --no-merges --format='%%ad %%ae %%s'
2018-08-15 37626415+[email protected] Roll src/third_party/skia e49966c983ec..77af386c13cb (3 commits) (flutter/engine#6029)
2018-08-15 [email protected] Wait for Dart VM initialization before the letting the service isolate constructor access the VM object. (flutter/engine#6028)
2018-08-15 [email protected] Re-apply "Log Tonic errors with FML_LOG" (flutter/engine#6026)
2018-08-15 37626415+[email protected] Roll src/third_party/skia 31a0944bb30b..e49966c983ec (8 commits) (flutter/engine#6027)
2018-08-15 [email protected] Update docker image tag and README (flutter/engine#5995)
2018-08-15 [email protected] Add message encoding/decoding utility to FML. (flutter/engine#6017)

The AutoRoll server is located here: https://flutter-engine-flutter-roll.skia.org

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md

If the roll is causing failures, please contact the current sheriff, who should
be CC'd on the roll, and stop the roller if necessary.
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Aug 16, 2018
flutter/engine@e3687f7...3280fc3

git log e3687f7..3280fc3 --date=short --no-merges --format='%%ad %%ae %%s'
2018-08-15 37626415+[email protected] Roll src/third_party/skia 77af386c13cb..64703d11a92a (1 commits) (flutter/engine#6030)
2018-08-15 37626415+[email protected] Roll src/third_party/skia e49966c983ec..77af386c13cb (3 commits) (flutter/engine#6029)
2018-08-15 [email protected] Wait for Dart VM initialization before the letting the service isolate constructor access the VM object. (flutter/engine#6028)
2018-08-15 [email protected] Re-apply "Log Tonic errors with FML_LOG" (flutter/engine#6026)
2018-08-15 37626415+[email protected] Roll src/third_party/skia 31a0944bb30b..e49966c983ec (8 commits) (flutter/engine#6027)
2018-08-15 [email protected] Update docker image tag and README (flutter/engine#5995)
2018-08-15 [email protected] Add message encoding/decoding utility to FML. (flutter/engine#6017)

The AutoRoll server is located here: https://flutter-engine-flutter-roll.skia.org

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md

If the roll is causing failures, please contact the current sheriff, who should
be CC'd on the roll, and stop the roller if necessary.
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Aug 16, 2018
flutter/engine@e3687f7...a5204c9

git log e3687f7..a5204c9 --date=short --no-merges --format='%%ad %%ae %%s'
2018-08-16 37626415+[email protected] Roll src/third_party/skia 64703d11a92a..767fddfcce61 (1 commits) (flutter/engine#6031)
2018-08-15 37626415+[email protected] Roll src/third_party/skia 77af386c13cb..64703d11a92a (1 commits) (flutter/engine#6030)
2018-08-15 37626415+[email protected] Roll src/third_party/skia e49966c983ec..77af386c13cb (3 commits) (flutter/engine#6029)
2018-08-15 [email protected] Wait for Dart VM initialization before the letting the service isolate constructor access the VM object. (flutter/engine#6028)
2018-08-15 [email protected] Re-apply "Log Tonic errors with FML_LOG" (flutter/engine#6026)
2018-08-15 37626415+[email protected] Roll src/third_party/skia 31a0944bb30b..e49966c983ec (8 commits) (flutter/engine#6027)
2018-08-15 [email protected] Update docker image tag and README (flutter/engine#5995)
2018-08-15 [email protected] Add message encoding/decoding utility to FML. (flutter/engine#6017)

The AutoRoll server is located here: https://flutter-engine-flutter-roll.skia.org

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md

If the roll is causing failures, please contact the current sheriff, who should
be CC'd on the roll, and stop the roller if necessary.
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Aug 16, 2018
flutter/engine@e3687f7...4ee6489

git log e3687f7..4ee6489 --date=short --no-merges --format='%%ad %%ae %%s'
2018-08-16 37626415+[email protected] Roll src/third_party/skia 767fddfcce61..cbd83bbd77d1 (1 commits) (flutter/engine#6032)
2018-08-16 37626415+[email protected] Roll src/third_party/skia 64703d11a92a..767fddfcce61 (1 commits) (flutter/engine#6031)
2018-08-15 37626415+[email protected] Roll src/third_party/skia 77af386c13cb..64703d11a92a (1 commits) (flutter/engine#6030)
2018-08-15 37626415+[email protected] Roll src/third_party/skia e49966c983ec..77af386c13cb (3 commits) (flutter/engine#6029)
2018-08-15 [email protected] Wait for Dart VM initialization before the letting the service isolate constructor access the VM object. (flutter/engine#6028)
2018-08-15 [email protected] Re-apply "Log Tonic errors with FML_LOG" (flutter/engine#6026)
2018-08-15 37626415+[email protected] Roll src/third_party/skia 31a0944bb30b..e49966c983ec (8 commits) (flutter/engine#6027)
2018-08-15 [email protected] Update docker image tag and README (flutter/engine#5995)
2018-08-15 [email protected] Add message encoding/decoding utility to FML. (flutter/engine#6017)

The AutoRoll server is located here: https://flutter-engine-flutter-roll.skia.org

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md

If the roll is causing failures, please contact the current sheriff, who should
be CC'd on the roll, and stop the roller if necessary.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants