Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8356655

[premain] restore UseCompatibleCompressedOops flag functionality

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • repo-leyden
    • repo-leyden
    • hotspot

      UseCompatibleCompressedOops flag forces generation compressed oops encoding which use COOP base and shift. This allow to use generate AOT code for any Java heap size when compressed oops are used.

      But the flag was commented out during merge from mainline https://github.com/openjdk/leyden/commit/4cd4c7cdfae7b4b5eb3308abc8fa8d0ed7581ad8

      It is also enabled for old workflow which used `CacheDataStore` and not new `AOTCache` workflow from JEP 483.

      After enabling the flag for `AOTCache` I hit next assert:
      https://github.com/openjdk/leyden/blob/premain/src/hotspot/share/oops/compressedOops.cpp#L87

      Changing os::vm_page_size() to heap_space.noaccess_prefix() helped to pass the assert.

      But I hit next one after that:

      https://github.com/openjdk/leyden/blob/premain/src/hotspot/share/oops/instanceKlass.cpp#L794

            Unassigned Unassigned
            kvn Vladimir Kozlov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: