Comments (1)
One open question about shared everything multithreading is around the cost of barriers required to maintain memory model and type safety. Consider the following code:
class X {
List v;
X() : v = [];
}
@pragma('vm:shared')
X x = X();
thread1() {
x = X();
}
thread2() {
x.v.length;
}
We don't want read of x.v
to return null
(or worse - garbage), because writes of x
and x.v
are reordered by hardware with weak memory model.
We should experiment with adding barrier to measure the synchronization cost. We can start by adding a barrier to GenerateAllocateObjectHelper
and doing a Golem run.
from sdk.
Related Issues (20)
- Analyzer Feedback from IntelliJAnalysis server has terminated HOT 2
- Have any examples show how to export methods from dart to JavaScript? HOT 10
- Analyzer doesn't promt quick-fix about extension importing HOT 1
- An `internal` implementation of an instance, as a `Map`? HOT 2
- ffi/native_assets/asset_relative_test flaky Timeout HOT 3
- double loses precision before it is computed HOT 2
- [dart fix] dart fix keeps adding dependencies even when not requested HOT 1
- [Augmentations] Analyzer doesn't support augmenting functions with empty bodies
- [analyzer] Confusing suggestion for overriding `==` HOT 3
- Make it possible to augment constructor initializer in FieldDefinitionMacro HOT 1
- No analysis error when switch case can never match HOT 4
- Issue with Uri.encodeComponent not encoding correctly. HOT 1
- [gardening][vm][gc] ring_gc_sendAndExit_test
- [Augmentations] Analyzer error when augmenting representation variable HOT 2
- [Augmentations] Analyzer doesn't support `implements` for extension types
- [Augmentations] No error in the analyzer when getter/setter is augmented with a variable
- [Augmentations] Is repeating `implements` for extension type an error? HOT 2
- [Augmentations] No error in the analyzer if augmentation adds restrictions to mixin
- JsonCodable should use type in Xxx.fromJson/toJson as representation in json HOT 1
- DevTools server failing to start on beta HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sdk.