Skip to content

Snapshot format is not platform independent #6359

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
peter-ahe-google opened this issue Oct 29, 2012 · 3 comments
Closed

Snapshot format is not platform independent #6359

peter-ahe-google opened this issue Oct 29, 2012 · 3 comments
Assignees
Labels
area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.

Comments

@peter-ahe-google
Copy link
Contributor

As we discovered in issue #6233, the snapshot format is not platform independent.

I'm told that is a bug.

@a-siva
Copy link
Contributor

a-siva commented Oct 29, 2012

Peter, currently the VM sets up the following fields in a dart instance:
instance_size - size of a an instance in bytes
offset - offset in bytes of the field in the instance

Since these are values are recorded in bytes the values are different for a 32 bit VM from a 64 bit VM. Hence a snapshot generated on a 32 bit system does not work when read into a 64 bit VM.

There is a proposal to record these values in words which would make them platform independent. I will use this bug as a means for tracking this proposed changed.

@a-siva
Copy link
Contributor

a-siva commented Nov 27, 2012

Set owner to @a-siva.
Added Started label.

@a-siva
Copy link
Contributor

a-siva commented Nov 30, 2012

@peter-ahe-google peter-ahe-google added Type-Defect area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. labels Nov 30, 2012
This issue was closed.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
Projects
None yet
Development

No branches or pull requests

2 participants