Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8203555 | 11.0.1 | Unassigned | P4 | Resolved | Fixed | team |
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.
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.
- backported by
-
JDK-8203555 Metaspace::_capacity_until_GC should be size_t
-
- Resolved
-
- relates to
-
JDK-8203262 Incorrect cmpxchg usage in MetaspaceGC::inc_capacity_until_GC
-
- Resolved
-