Metaspace::_capacity_until_GC should be size_t

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 11
    • Affects Version/s: 10
    • Component/s: 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.

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

                Created:
                Updated:
                Resolved: