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

Whitebox functions for Metaspace test should use byte size

XMLWordPrintable

    • 16
    • b24

      All WB functions pertaining to elastic metaspace that take sizes take those in number-of-words.

      `WB_CreateMetaspaceTestContext`,
      `WB_AllocateFromMetaspaceTestArena`, `WB_DeallocateToMetaspaceTestArena`,
      `WB_GetTotalCommittedWordsInMetaspaceTestContext`, `WB_GetTotalUsedWordsInMetaspaceTestContext`
       and
      `WB_GetMaxMetaspaceAllocationSize`.

      This is unwieldy, and since the tests using them (test/hotspot/jtreg/runtime/Metaspace/elastic/Settings.java) implicitly assume 8 as word size, slightly wrong for 32-bit.

      The error is benign since these sizes are applied consistently. But it makes maintenance difficult.

            szaldana Sonia Zaldana Calles
            stuefe Thomas Stuefe
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: