-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DART_VM_OPTIONS for self-executables not working! #55767
Comments
FYI: @bkonyi |
Please add documentation for |
Cherrypick request has been filed here: #55818. |
There's not any obvious spot to put this on the website since it's relatively niche functionality, but I've added documentation in the SDK that should make this a bit easier to discover: https://dart-review.googlesource.com/c/sdk/+/367800 |
The default max heap size is 30GB: Line 62 in f4cc1eb
IMHO, every self-executable in production should define its memory limit, since running any application with a heap limit higher than the available memory is a recipe for disaster. Since the only way to define the max heap size in a self-executable is by using |
… of help message Fixes #55767 TEST=pkg/dartdev/test/commands/compile_test.dart Change-Id: I6a773acbd9fc21c086fc459c7cb983ea1ff11fcd Cherry-pick: https://dart-review.googlesource.com/c/sdk/+/367720 Cherry-pick-request: #55818 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/367721 Reviewed-by: Siva Annamalai <asiva@google.com> Commit-Queue: Ben Konyi <bkonyi@google.com>
I believe this can be closed ? |
It's already closed :-) |
As mentioned on README, Dart 3.4.0 supports
DART_VM_OPTIONS
for self-executables:README.md
:Example:
foo.dart
:run-foo.sh
:Output of
./run-foo.sh
:For some reason it's always showing the
dart
CLI help message.dart --version
:The text was updated successfully, but these errors were encountered: