On behalf of Kirill Leonov:
Malloc overhead with NMT equals 18 bytes (16 bytes header + 2 bytes footer canary). Current implementation of malloc_overhead takes into account only header size ignoring the not footer canary.
```
inline size_t malloc_overhead() const {
return _all_mallocs.count() * sizeof(MallocHeader);
}
```
As a result tracking overhead calculated and reported incorrectly.
Malloc overhead with NMT equals 18 bytes (16 bytes header + 2 bytes footer canary). Current implementation of malloc_overhead takes into account only header size ignoring the not footer canary.
```
inline size_t malloc_overhead() const {
return _all_mallocs.count() * sizeof(MallocHeader);
}
```
As a result tracking overhead calculated and reported incorrectly.
- links to
-
Commit(master) openjdk/jdk/fb703258
-
Review(master) openjdk/jdk/20625