-
Enhancement
-
Resolution: Fixed
-
P4
-
8, 11, 14
-
b22
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8246138 | 13.0.4 | Claes Redestad | P4 | Resolved | Fixed | b03 |
JDK-8241275 | 11.0.8 | Claes Redestad | P4 | Resolved | Fixed | b01 |
When mallocing, we spend some cycles calling into MallocTracker::record_malloc and ::record_free, only to immediately return in the common case that NMT is not enabled.
Moving the NMT_off check to equivalents in MemTracker allows the checks to be inlined, which is performance neutral in case NMT is enabled, but reduces overhead when it's disabled. This inlining is also neutral w.r.t. static binary size.
Moving the NMT_off check to equivalents in MemTracker allows the checks to be inlined, which is performance neutral in case NMT is enabled, but reduces overhead when it's disabled. This inlining is also neutral w.r.t. static binary size.
- backported by
-
JDK-8241275 Avoid calling MallocTracker::record_malloc and record_free when NMT is off
-
- Resolved
-
-
JDK-8246138 Avoid calling MallocTracker::record_malloc and record_free when NMT is off
-
- Resolved
-
- relates to
-
JDK-8233608 Minimal build broken after JDK-8233494
-
- Closed
-