-
Bug
-
Resolution: Fixed
-
P2
-
hs25
-
b52
-
Not verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8025788 | 8 | Stefan Karlsson | P2 | Closed | Fixed | b110 |
The following code in Metaspace::should_expand:
if (!FLAG_IS_DEFAULT(MaxMetaspaceSize)) {
size_t real_allocated = Metaspace::space_list()->reserved_words() +
MetaspaceAux::allocated_capacity_bytes(Metaspace::ClassType);
if (real_allocated >= MaxMetaspaceSize) {
return false;
}
doesn't convert Metaspace::space_list()->reserved_words() to bytes, as it should.
if (!FLAG_IS_DEFAULT(MaxMetaspaceSize)) {
size_t real_allocated = Metaspace::space_list()->reserved_words() +
MetaspaceAux::allocated_capacity_bytes(Metaspace::ClassType);
if (real_allocated >= MaxMetaspaceSize) {
return false;
}
doesn't convert Metaspace::space_list()->reserved_words() to bytes, as it should.
- backported by
-
JDK-8025788 Metspace::should_expand mixes bytes and words in check against MaxMetaspaceSize
-
- Closed
-
- blocks
-
JDK-8024547 MaxMetaspaceSize should limit the committed memory used by the metaspaces
-
- Closed
-