Skip to content

Add a version number to snapshots #15982

@iposva-google

Description

@iposva-google

Every time the internal data structures in the VM change we need to invalidate existing snapshots as they are now incompatible.

A simple approach could be to bump the version number for every single official build.

More accurate, but significantly more involved would be to increase the version number whenever the information recorded in the snapshot changes. For example, generate a hash based on the VM internal data structures and core libraries flowing into the snapshot.

Metadata

Metadata

Assignees

Labels

P1A high priority bug; for example, a single project is unusable or has many test failuresarea-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions