[lworld] Integrated: 8281295: Prototype serialization/deserialization using Unsafe.
Roger Riggs
rriggs at openjdk.org
Fri Oct 14 21:51:20 UTC 2022
On Mon, 19 Sep 2022 18:21:31 GMT, Roger Riggs <rriggs at openjdk.org> wrote:
> Specify serialization and deserialization of value objects. Value objects are immutable, Externalizable relies on mutation, Externalizable is not supported for value objects. Revised tests and added tests for graphs of value objects.
>
> Somewhat similar to Record serialization in that back references to the value object store 'null' until the value object is completely deserialized.
> Similar to regular serialization/deserialization of identity objects. The serialized form is the same.
> Deserialization is done by reading fields and storing into a Buffered larval object, converted to a value object when all of the fields have been read and stored.
>
> Externalizable and Value Objects are incompatible, value objects are immutable and Externalizable.readExternal is expected to modify the fields of an allocated object.
This pull request has now been integrated.
Changeset: 143f6b28
Author: Roger Riggs <rriggs at openjdk.org>
URL: https://git.openjdk.org/valhalla/commit/143f6b28b20f0d3ee6c52fad58f5836230bfb112
Stats: 1107 lines in 9 files changed: 805 ins; 289 del; 13 mod
8281295: Prototype serialization/deserialization using Unsafe.
Reviewed-by: mchung
-------------
PR: https://git.openjdk.org/valhalla/pull/761
More information about the valhalla-dev
mailing list