Re: [v8-users] Persistent Context make memory leaks on Windows

2013-12-08 Thread Gregory Hlavac
PersistentContext context; context.reset(); But that depends on what version of v8 you're using, now Dispose has been replaced with .Reset() -- -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users --- You received this message because you are subscribed

[v8-users] Persistent Context make memory leaks on Windows

2013-12-04 Thread dan wu
There was codes* as follow:* #define _CRTDBG_MAP_ALLOC #include stdio.h #include crtdbg.h #include v8.h using namespace v8; int main(int argc,char** argv) { _CrtSetDbgFlag( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF); PersistentContext context; context.Dispose(); } I got leak messages *as

Re: [v8-users] Persistent Context make memory leaks on Windows

2013-12-04 Thread Steve Jonghee Yun
From the example code, I think that all of tasks are done. You said Call v8::V8:Dispose() when you're done with v8 What does mean done? Is there any difference with linux? (Linux has no leak.) Thank you. On Wednesday, December 4, 2013 5:07:14 PM UTC+9, Sven Panne wrote: On Wed, Dec 4, 2013

Re: [v8-users] Persistent Context make memory leaks on Windows

2013-12-04 Thread dan wu
I have called V8:Dispose() at last,but still has memory leaks ! 在 2013年12月4日星期三UTC+8下午4时07分14秒,Sven Panne写道: On Wed, Dec 4, 2013 at 9:04 AM, dan wu wuda...@gmail.com javascript:wrote: There was codes* as follow:* [...] But I could not detect memory leaks on linux with valgrind.The V8

Re: [v8-users] Persistent Context make memory leaks on Windows

2013-12-04 Thread Sven Panne
On Wed, Dec 4, 2013 at 11:11 AM, dan wu wudan@gmail.com wrote: I have called V8:Dispose() at last,but still has memory leaks ! Does it still leak with a v8 from bleeding_edge? The last 3.20 version is more than 1500 commits behind, there might very well be some fixes since then... -- --

Re: [v8-users] Persistent Context make memory leaks on Windows

2013-12-04 Thread Sven Panne
On Wed, Dec 4, 2013 at 10:33 AM, Steve Jonghee Yun yun.jong...@gmail.comwrote: From the example code, I think that all of tasks are done. In general you don't care about leaks when the process is about to be terminated, anyway, that's probably why lots of example code doesn't call

Re: [v8-users] Persistent Context make memory leaks on Windows

2013-12-04 Thread dan wu
I upgrade V8 version to 3.21,but has leaks also! 在 2013年12月4日星期三UTC+8下午6时18分33秒,Sven Panne写道: On Wed, Dec 4, 2013 at 11:11 AM, dan wu wuda...@gmail.com javascript:wrote: I have called V8:Dispose() at last,but still has memory leaks ! Does it still leak with a v8 from bleeding_edge? The

Re: [v8-users] Persistent Context make memory leaks on Windows

2013-12-04 Thread Sven Panne
On Wed, Dec 4, 2013 at 4:01 PM, dan wu wudan@gmail.com wrote: I upgrade V8 version to 3.21,but has leaks also! That's still more than 1000 commits behind bleeding_edge, which is at 3.23.19... -- -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users

Re: [v8-users] Persistent Context make memory leaks on Windows

2013-12-04 Thread dan wu
still leaks in bleeding_edge version *as follow*: Detected memory leaks! Dumping objects - {144} normal block at 0x0079B570, 24 bytes long. Data: p y FF FF FF FF 00 CD CD CD 00 00 00 00 70 B5 79 00 {143} normal block at 0x0079B518, 24 bytes long. Data: y FF FF FF FF

Re: [v8-users] Persistent Context make memory leaks on Windows

2013-12-04 Thread Gregory Hlavac
Have you tried using Persistent::Reset()? -- -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups v8-users group. To unsubscribe from this group and stop receiving emails from

Re: [v8-users] Persistent Context make memory leaks on Windows

2013-12-04 Thread dan wu
Could you tell me how to use Persistent::Reset()? Thanks! 在 2013年12月5日星期四UTC+8下午12时18分32秒,Gregory Hlavac写道: Have you tried using Persistent::Reset()? -- -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users --- You received this message because you are