Comments (5)
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 [email protected]
on 18 Mar 2010 at 9:49
from pyv8.
Original comment by [email protected]
on 19 Mar 2010 at 2:27
- Changed state: Accepted
from pyv8.
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 [email protected]
on 19 Mar 2010 at 3:10
- Changed state: Fixed
- Added labels: OpSys-All
Attachments:
from pyv8.
Verified. Thanks a lot!
Original comment by [email protected]
on 19 Mar 2010 at 6:19
from pyv8.
You are welcome :)
Original comment by [email protected]
on 20 Mar 2010 at 1:47
- Changed state: Verified
from pyv8.
Related Issues (20)
- Memory leak with evaluating pure JS HOT 3
- How to load contents of alert screen ?
- Update version on PyPI
- error: 'CLASSIC_MODE' is not a member of 'v8i' v8 API change ?
- REVISION
- AST can't visit object properties: No to_python (by-value) converter found for C++ type: v8::internal::ObjectLiteralProperty*
- src/Context.h:66:114: error: no member named 'HasOutOfMemoryException' in 'v8::Context'
- Help !!
- Precompiled for Debain x64 HOT 1
- Failed to pip install/build under linux x64 — lot of errors in src/Wrapper.cpp HOT 1
- segfault
- compile failed with error code 1
- Segmentation fault when incorrectly instantiating a new Date
- error install from pip
- a python object/memory leak problem
- build stalls on install/update GYP
- fatal error: 'v8.h' file not found
- compile error
- PyV8 segmentation fault with CherryPy HOT 2
- ImportError: No module named _PyV8 after install
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyv8.