Skip to content

Commit 9909fc9

Browse files
committed
All fields of HeapStatistics should be initialized.
1 parent df21bfc commit 9909fc9

File tree

1 file changed

+7
-1
lines changed
  • graal-nodejs/deps/v8/src/graal

1 file changed

+7
-1
lines changed

graal-nodejs/deps/v8/src/graal/v8.cc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,8 +548,14 @@ namespace v8 {
548548
heap_statistics->total_available_size_ = graal_isolate->ReadInt64FromSharedBuffer();
549549
heap_statistics->used_heap_size_ = graal_isolate->ReadInt64FromSharedBuffer();
550550
heap_statistics->heap_size_limit_ = 0;
551-
heap_statistics->does_zap_garbage_ = false;
551+
heap_statistics->malloced_memory_ = 0;
552552
heap_statistics->external_memory_ = 4096; // dummy value
553+
heap_statistics->peak_malloced_memory_ = 0;
554+
heap_statistics->does_zap_garbage_ = false;
555+
heap_statistics->number_of_native_contexts_ = 0;
556+
heap_statistics->number_of_detached_contexts_ = 0;
557+
heap_statistics->total_global_handles_size_ = 0;
558+
heap_statistics->used_global_handles_size_ = 0;
553559
}
554560

555561
Isolate::CreateParams::CreateParams() {

0 commit comments

Comments
 (0)