-
Enhancement
-
Resolution: Fixed
-
P4
-
19
-
b03
In `ObjectStartArray::initialize`:
```
...
MemTracker::record_virtual_memory_type((address)backing_store.base(), mtGC);
_virtual_space.initialize(backing_store);
_raw_base = (jbyte*)_virtual_space.low_boundary();
...
MemTracker::record_virtual_memory_type((address)_raw_base, mtGC);
```
Inspecting the `_virtual_space.initialize` and `_virtual_space.low_boundary`, one can see `_raw_base == backing_store.base()`. Therefore, the second `record_virtual_memory_type` is redundant.
```
...
MemTracker::record_virtual_memory_type((address)backing_store.base(), mtGC);
_virtual_space.initialize(backing_store);
_raw_base = (jbyte*)_virtual_space.low_boundary();
...
MemTracker::record_virtual_memory_type((address)_raw_base, mtGC);
```
Inspecting the `_virtual_space.initialize` and `_virtual_space.low_boundary`, one can see `_raw_base == backing_store.base()`. Therefore, the second `record_virtual_memory_type` is redundant.