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);
Persistent<Context> context;
context.Dispose();
}
I got leak messages *as follow:*
Detected memory leaks!
Dumping objects ->
{147} normal block at 0x006DB368, 24 bytes long.
Data: < h m > FF FF FF FF 00 CD CD CD 00 00 00 00 68 B3 6D 00
{146} normal block at 0x006DB310, 24 bytes long.
Data: < m > FF FF FF FF 00 CD CD CD 00 00 00 00 10 B3 6D 00
{145} normal block at 0x006DB2B8, 28 bytes long.
Data: < # > A8 E0 B6 0F 18 23 1E 00 FF FF FF FF 00 00 00 00
{144} normal block at 0x006DB260, 28 bytes long.
Data: < m > B8 B2 6D 00 FF FF FF FF FF FF FF FF 00 00 00 00
{143} normal block at 0x006DB208, 28 bytes long.
Data: < " > A8 E0 B6 0F E0 22 1E 00 FF FF FF FF 00 00 00 00
{142} normal block at 0x006DB1C0, 8 bytes long.
Data: < > 00 00 00 00 00 00 00 00
{141} normal block at 0x006DB178, 8 bytes long.
Data: < > 00 00 00 00 00 00 00 00
{140} normal block at 0x006DB130, 8 bytes long.
Data: < H > C8 E0 B6 0F 48 00 00 00
{139} normal block at 0x006DB0E8, 8 bytes long.
Data: < D > C8 E0 B6 0F 44 00 00 00
{138} normal block at 0x006DB090, 28 bytes long.
Data: < " > A8 E0 B6 0F A8 22 1E 00 FF FF FF FF 00 00 00 00
{137} normal block at 0x006DB048, 8 bytes long.
Data: < > FF FF FF FF CD CD CD CD
{136} normal block at 0x006DAFF0, 28 bytes long.
Data: < p" > A8 E0 B6 0F 70 22 1E 00 FF FF FF FF 00 00 00 00
{135} normal block at 0x006DAF98, 28 bytes long.
Data: < 8" > A8 E0 B6 0F 38 22 1E 00 FF FF FF FF 00 00 00 00
{134} normal block at 0x006D4A60, 25848 bytes long.
Data: < `Jm > 00 00 00 00 00 00 00 00 60 4A 6D 00 00 00 00 00
{133} normal block at 0x006D4A20, 4 bytes long.
Data: < > 00 00 00 00
{132} normal block at 0x006D49C8, 28 bytes long.
Data: < " > A8 E0 B6 0F 00 22 1E 00 FF FF FF FF 00 00 00 00
Object dump complete.
But I could not detect memory leaks on linux with valgrind.The V8 version
is 3.20.Any body can tell me why? Thanks!
--
--
v8-users mailing list
[email protected]
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 it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.