Skip to content

Commit

Permalink
JDK-8333361
Browse files Browse the repository at this point in the history
  • Loading branch information
MBaesken committed Jun 20, 2024
1 parent 6420846 commit 970943a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,9 @@ static void event_storage_augment_storage(EventStorage* storage) {
ObjectTrace** new_objects = reinterpret_cast<ObjectTrace**>(malloc(new_max * sizeof(*new_objects)));

int current_count = storage->live_object_count;
memcpy(new_objects, storage->live_objects, current_count * sizeof(*new_objects));
if (storage->live_objects != nullptr) {
memcpy(new_objects, storage->live_objects, current_count * sizeof(*new_objects));
}
free(storage->live_objects);
storage->live_objects = new_objects;
storage->live_object_size = new_max;
Expand Down

0 comments on commit 970943a

Please sign in to comment.