Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8045396 | 8u25 | Erik Helin | P4 | Resolved | Fixed | b01 |
JDK-8040023 | 8u20 | Erik Helin | P4 | Resolved | Fixed | b12 |
JDK-8053315 | emb-8u26 | Erik Helin | P4 | Resolved | Fixed | b17 |
From the beginning, there were only functions named used_in_bytes() and capacity_in_bytes(). These functions iterated over the ClassLoaderDataGraph to reach all metaspaces and then iterated over the chunk list.
Later, the functions allocated_used_bytes() and allocated_capacity_bytes() were added that used accounting to be able to return a value faster and without using a lock. When these were added, the functions used_bytes() and capacity_bytes() were renamed to used_bytes_slow() to capacity_bytes_slow() to clarify the difference (the slow functions were later made private).
Since the old, slow functions end in _slow, we can now drop the allocated_ prefix from the accounting functions.
Later, the functions allocated_used_bytes() and allocated_capacity_bytes() were added that used accounting to be able to return a value faster and without using a lock. When these were added, the functions used_bytes() and capacity_bytes() were renamed to used_bytes_slow() to capacity_bytes_slow() to clarify the difference (the slow functions were later made private).
Since the old, slow functions end in _slow, we can now drop the allocated_ prefix from the accounting functions.
- backported by
-
JDK-8040023 Remove prefix allocated_ from methods and variables in Metaspace
-
- Resolved
-
-
JDK-8045396 Remove prefix allocated_ from methods and variables in Metaspace
-
- Resolved
-
-
JDK-8053315 Remove prefix allocated_ from methods and variables in Metaspace
-
- Resolved
-