mksnapshot and warm_up

44 views
Skip to first unread message

Johannes Rieken

unread,
Mar 1, 2018, 10:43:06 AM3/1/18
to v8-users

Hey, 

Can someone help me understand what the difference between a warm and cold snapshot is? I stumbled over `WarmUpSnapshotDataBlob` but I am not entirely sure how to make use of them via the mksnapshot-tools and what the sequence would be. Do I begin with a custom snapshot and then snapshot that snapshot again after its functions have been used?

Thanks, 
Joh

Jakob Gruber

unread,
Mar 1, 2018, 11:16:37 AM3/1/18
to v8-u...@googlegroups.com
On Thu, Mar 1, 2018 at 4:43 PM, Johannes Rieken <johanne...@gmail.com> wrote:

Hey, 

Can someone help me understand what the difference between a warm and cold snapshot is? I stumbled over `WarmUpSnapshotDataBlob` but I am not entirely sure how to make use of them via the mksnapshot-tools and what the sequence would be. Do I begin with a custom snapshot and then snapshot that snapshot again after its functions have been used?


Johannes Rieken

unread,
Mar 1, 2018, 11:31:06 AM3/1/18
to v8-users
Great! Thanks for the speedy reply. Looking at https://cs.chromium.org/chromium/src/v8/test/cctest/test-serialize.cc?type=cs&q=CustomSnapshotDataBlobWithWarmup&l=1167 makes me think/hope  that functions are being compiled but state isn't changed (e.g. the assignment to `a` isn't persistent). Is that a correct assumption?

ramon...@gmail.com

unread,
Mar 1, 2018, 11:55:02 AM3/1/18
to v8-u...@googlegroups.com

Hello!

I use a new email filtering service called BitBounce to better filter my spam. To deliver your email to my inbox, please click the link below and pay the small Credo fee. Thank you!

You can sign up or get more info about BitBounce by clicking here.

To deliver your email:

We’ve never met. I’ll pay your fee.

I know you. Add me to your whitelist.

Email That Pays

BitBounce is a product by:

Turing Technology, Inc.

BitBounce.com

Redwood City, CA

Jakob Gruber

unread,
Mar 1, 2018, 12:13:40 PM3/1/18
to v8-u...@googlegroups.com
AFAIK that's correct. The polluted warmup context is thrown out, and a second clean context (with the now-compiled code) is serialized into the warmed up snapshot.

--
--
v8-users mailing list
v8-u...@googlegroups.com
http://groups.google.com/group/v8-users
---
You received this message because you are subscribed to the Google Groups "v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jakob Gruber

Software Engineer

jgr...@google.com

Google Germany GmbH

Erika-Mann-Straße 33

80636 München


Geschäftsführer: Paul Manicle, Halimah DeLaine Prado

Registergericht und -nummer: Hamburg, HRB 86891

Sitz der Gesellschaft: Hamburg


Diese E-Mail ist vertraulich. Falls sie diese fälschlicherweise erhalten haben sollten, leiten Sie diese bitte nicht an jemand anderes weiter, löschen Sie alle Kopien und Anhänge davon und lassen Sie mich bitte wissen, dass die E-Mail an die falsche Person gesendet wurde.

    

This e-mail is confidential. If you received this communication by mistake, please don't forward it to anyone else, please erase all copies and attachments, and please let me know that it has gone to the wrong person.

ramon...@gmail.com

unread,
Mar 1, 2018, 1:46:49 PM3/1/18
to v8-u...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages