ext/fast_mmaped_file/mmap.h in prometheus-client-mmap-0.16.2 vs ext/fast_mmaped_file/mmap.h in prometheus-client-mmap-0.17.0
- old
+ new
@@ -50,6 +50,12 @@
VALUE mm_init(VALUE obj, VALUE fname);
VALUE mm_aref_m(int argc, VALUE *argv, VALUE obj);
VALUE mm_msync(int argc, VALUE *argv, VALUE obj);
VALUE mm_unmap(VALUE obj);
+/* If memory is ever reallocated, any allocated Ruby strings that have not been
+ * garbage collected need to be updated with the new region. If this isn't done,
+ * iterating over the Ruby object space and accessing the string data will seg fault.
+ */
+void mm_update(VALUE obj);
+
#endif