diff options
author | Philip Chimento <philip.chimento@gmail.com> | 2023-04-09 05:17:20 +0000 |
---|---|---|
committer | Philip Chimento <philip.chimento@gmail.com> | 2023-04-09 05:17:20 +0000 |
commit | de0d76a1061b5aff333ba850ab32317eb557ce8e (patch) | |
tree | 519dcea0a8107665cc7e8425376940763fc6c508 /gi/object.cpp | |
parent | 1b78dec51c12379c332246854760b038355984da (diff) | |
parent | c925d91e5d018f38b0f66d0ac592274d4b007efb (diff) | |
download | gjs-de0d76a1061b5aff333ba850ab32317eb557ce8e.tar.gz |
Merge branch 'cb-during-gc-fixes' into 'master'
Better handling of callbacks during GC
See merge request GNOME/gjs!832
Diffstat (limited to 'gi/object.cpp')
-rw-r--r-- | gi/object.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gi/object.cpp b/gi/object.cpp index 62e79c18..1ad12afe 100644 --- a/gi/object.cpp +++ b/gi/object.cpp @@ -58,7 +58,6 @@ #include "gi/wrapperutils.h" #include "gjs/atoms.h" #include "gjs/context-private.h" -#include "gjs/context.h" #include "gjs/deprecation.h" #include "gjs/jsapi-class.h" #include "gjs/jsapi-util.h" @@ -165,10 +164,9 @@ bool ObjectInstance::check_gobject_disposed_or_finalized( "Object %s.%s (%p), has been already %s — impossible to %s " "it. This might be caused by the object having been destroyed from C " "code using something such as destroy(), dispose(), or remove() " - "vfuncs.", + "vfuncs.\n%s", ns(), name(), m_ptr.get(), m_gobj_finalized ? "finalized" : "disposed", - for_what); - gjs_dumpstack(); + for_what, gjs_dumpstack_string().c_str()); return false; } |