• Home
    • View
    • Login
    This page
    • Normal
    • Export PDF
    • Page Information

    Loading...
  1. Dashboard
  2. Undefined Space
  3. Valhalla
  4. Minimal Value Types

Page History

Versions Compared

Old Version 8

changes.mady.by.user Karen Kinnear

Saved on Aug 08, 2017

compared with

New Version 9

changes.mady.by.user Karen Kinnear

Saved on Aug 09, 2017

  • Previous Change: Difference between versions 7 and 8
  • Next Change: Difference between versions 9 and 10
  • View Page History

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Create a POJO using an experimental javac, with an annotation ValueCapableClass (jvm.internal.value.ValueCapableClass)
    • JVM will derive a Derived Value Class (DVC) from this defined "box" which we call the Value Capable Class (VCC)
    • DVC contains an immutable copy of the instance fields from the VCC
  • Work with MethodHandles and experimental reflection package ValueType (jdk.experimental.value.ValueType)
  • Or spin your own byte codes
    • experimental MethodBuilder (jdk/experimental/value.MethodHandleBuilder)
    • future: ASM support is planned

...

  • Code samples
    • See directory jdk/test/valhalla/mvt in your repository
      • e.g. MethodHandlesTest

Run Experimental MVT

  • java -Xverify:none -XX:+EnableMVT <Test>
  • Command-line flags: Minimal Value Types Command-line Optionsjava: use -Xverify:none -XX:+EnableMVT

Filing Bugs

  • File openjdk bugs with synopsis starting with "[MVT]" and labels: "mvt"

...

  • Minimal Value Types Command-line Options
  • Youtube JVMLS 2017: Minimal Value Types: Origins and Programming Model
  • Youtube JVMLS 2017: Minimal Value Types: Under the Hood

...

Overview
Content Tools
ThemeBuilder

Terms of Use
• License: GPLv2
• Privacy • Trademarks • Contact Us

Powered by a free Atlassian Confluence Open Source Project License granted to https://www.atlassian.com/software/views/opensource-community-additional-license-offer. Evaluate Confluence today.

  • Kolekti ThemeBuilder Powered by Atlassian Confluence 8.5.23
  • Kolekti ThemeBuilder printed.by.atlassian.confluence
  • Report a bug
  • Atlassian News
Atlassian
Kolekti ThemeBuilder EngineAtlassian Confluence
{"serverDuration": 293, "requestCorrelationId": "6aa2fe574c2441f7"}