We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 412c001 commit ca176d4Copy full SHA for ca176d4
quickjs.c
@@ -5839,7 +5839,7 @@ void JS_ComputeMemoryUsage(JSRuntime *rt, JSMemoryUsage *s)
5839
s->malloc_limit = rt->malloc_state.malloc_limit;
5840
5841
s->memory_used_count = 2; /* rt + rt->class_array */
5842
- s->memory_used_size = sizeof(JSRuntime) + sizeof(JSValue) * rt->class_count;
+ s->memory_used_size = sizeof(JSRuntime) + sizeof(JSClass) * rt->class_count;
5843
5844
list_for_each(el, &rt->context_list) {
5845
JSContext *ctx = list_entry(el, JSContext, link);
0 commit comments