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

Metaspace::_capacity_until_GC should be size_t

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 11
    • 10
    • hotspot
    • None
    • gc
    • b14

        src/hotspot/share/memory/metaspace.cpp
        1502 size_t value = OrderAccess::load_acquire(&_capacity_until_GC);
        ...
        1537 return (size_t)Atomic::sub((intptr_t)v, &_capacity_until_GC);

        These and other uses of _capacity_until_GC suggest that variable's
        type should be size_t rather than intptr_t. Note that I haven't done
        a careful check of uses to see if there are any places where such a
        change would cause problems.

              aharlap Alexander Harlap (Inactive)
              coleenp Coleen Phillimore
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: