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

Initialization logic error in PerfMemory

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • 11
    • 9
    • 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!

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

              Created:
              Updated:
              Resolved: