mirror of
https://github.com/dart-lang/sdk
synced 2024-10-04 20:09:41 +00:00
[vm] Native asset relative path resolution with symlinks - fix
The fallback mechanism wasn't working because the embedded struct by value wasn't nullptr initialized. TEST=tested by commenting out `Dart_InitializeNativeAssetsResolver` in `main_impl.cc`. Without this CL it segfaults, with this CL it works as expected. Closes: https://github.com/dart-lang/sdk/issues/56006 Change-Id: If93cf9b077a2791a8385bdc8e75708dd95c8ead6 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/371620 Reviewed-by: Martin Kustermann <kustermann@google.com>
This commit is contained in:
parent
6f21d19b02
commit
47cb48e415
|
@ -403,6 +403,7 @@ IsolateGroup::IsolateGroup(std::shared_ptr<IsolateGroupSource> source,
|
|||
heap_walk_class_table_ = class_table_ =
|
||||
new ClassTable(&class_table_allocator_);
|
||||
cached_class_table_table_.store(class_table_->table());
|
||||
memset(&native_assets_api_, 0, sizeof(NativeAssetsApi));
|
||||
}
|
||||
|
||||
IsolateGroup::IsolateGroup(std::shared_ptr<IsolateGroupSource> source,
|
||||
|
|
Loading…
Reference in a new issue