Initialization logic error in PerfMemory

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P4
    • 11
    • Affects Version/s: 9
    • Component/s: hotspot
    • None
    • svc

      ./share/vm/runtime/perfMemory.cpp: OrderAccess::release_store(&_initialized, 1);

      Incorrect usage: the initialization logic is broken. We write _initialized last with release_store but there is no load_acquire to match with it. Worse the only code that checks _initialized is PerfMemory:;destroy. The actual PerfMemory functions either don't check initialization or use an assert that checks a different field!

            Assignee:
            Unassigned
            Reporter:
            David Holmes
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: