Giter Club home page Giter Club logo

Comments (8)

bkonyi avatar bkonyi commented on September 26, 2024 1

Thanks for the heads up @gmpassos. I'm able to reproduce and it looks like there was some oversights in the implementation that wasn't caught by testing. I have a fix up for review here.

from sdk.

bkonyi avatar bkonyi commented on September 26, 2024 1

Cherrypick request has been filed here: #55818.

from sdk.

a-siva avatar a-siva commented on September 26, 2024 1

I believe this can be closed ?

from sdk.

bkonyi avatar bkonyi commented on September 26, 2024 1

I believe this can be closed ?

It's already closed :-)

from sdk.

gmpassos avatar gmpassos commented on September 26, 2024

FYI: @bkonyi

from sdk.

gmpassos avatar gmpassos commented on September 26, 2024

... I have a fix up for review here.

Please add documentation for DART_VM_OPTIONS, especially for self-executables. This is not documented anywhere.

from sdk.

bkonyi avatar bkonyi commented on September 26, 2024

Please add documentation for DART_VM_OPTIONS, especially for self-executables. This is not documented anywhere.

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

from sdk.

gmpassos avatar gmpassos commented on September 26, 2024

... it's relatively niche functionality.

The default max heap size is 30GB:

const intptr_t kDefaultMaxOldGenHeapSize = (kWordSize <= 4) ? 1536 : 30720;

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 DART_VM_OPTIONS, this shouldn't be treated as a hidden property.

from sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.