diff --git a/js/js2/gc_allocator.h b/js/js2/gc_allocator.h index 4e7b4f4dbcb..869b9a19572 100644 --- a/js/js2/gc_allocator.h +++ b/js/js2/gc_allocator.h @@ -74,6 +74,10 @@ namespace JavaScript { #undef define_atomic_type + /** + * Traits for classes that need to have their destructor called + * when reclaimed by the garbage collector. + */ template struct gc_traits_finalizable { static void finalizer(void* obj, void* client_data) { diff --git a/js2/src/gc_allocator.h b/js2/src/gc_allocator.h index 4e7b4f4dbcb..869b9a19572 100644 --- a/js2/src/gc_allocator.h +++ b/js2/src/gc_allocator.h @@ -74,6 +74,10 @@ namespace JavaScript { #undef define_atomic_type + /** + * Traits for classes that need to have their destructor called + * when reclaimed by the garbage collector. + */ template struct gc_traits_finalizable { static void finalizer(void* obj, void* client_data) {