Closed GoogleCodeExporter closed 9 years ago
A little modification to the script:
+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0
print PyV8.JSExtension.extensions
ext1 = 123
print PyV8.JSExtension.extensions
+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0
We get:
['ext1/javascript', 'v8/gc']
['(]\xad\x01\xe0z8', 'v8/gc']
Original comment by mmura...@dieresys.com.ar
on 18 Mar 2010 at 9:49
Original comment by flier...@gmail.com
on 19 Mar 2010 at 2:27
The root cause is v8 doesn't support to deregister a extension, if you free a
extension
with `ext1 = 123`, v8 engine still hold a pointer with a linked list, and it
will refer to a
invalid memory area.
So, I use a global vector to hold every registered extensions, even you free
the python
object, pyv8 still help you hold it.
Please verify it with latest SVN code after r244, or use the private build in
attachment
Original comment by flier...@gmail.com
on 19 Mar 2010 at 3:10
Attachments:
Verified. Thanks a lot!
Original comment by mmura...@dieresys.com.ar
on 19 Mar 2010 at 6:19
You are welcome :)
Original comment by flier...@gmail.com
on 20 Mar 2010 at 1:47
Original issue reported on code.google.com by
mmura...@dieresys.com.ar
on 18 Mar 2010 at 9:38