SnapshotLocator class
Finds the file that Isolate.spawnUri can start, so a server isolate
can get its own isolate group (CoreFlags.isolateGroups).
It tries, in this order:
- Linux: the library of a
dart build clibundle,<dir of the executable>/../lib/libdartaot<name of the executable>.so <executable>.aot, a file made withdart compile aot-snapshot- the script that runs now, when it is a file (
dart run, JIT)
The executable itself is never a candidate. On macOS spawnUri on it
crashes the VM, and the crash can not be caught.
Constructors
- SnapshotLocator({String? executable, Uri? script, bool? isLinux})
Properties
- executable → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isLinux → bool
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- script → Uri
-
final
Methods
-
candidates(
) → List< String> - the paths to try, in order, with no check
-
find(
) → Uri? - the file to start, or null when there is none
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
scriptKinds
→ const Set<
String> -
the kinds of file the VM can start as a script. An executable from
dart compile exeis its own script, and it has none of these.