gnash-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnash-dev] Memory allocation model?


From: Michael Meier
Subject: Re: [Gnash-dev] Memory allocation model?
Date: Tue, 21 Nov 2006 22:02:31 +0100
User-agent: Debian Thunderbird 1.0.2 (X11/20060926)

strk wrote:

> I added another one with a commit today: texinfo.
> Do you have that ? (for makeinfo)

Yes.


>>I implemented all the missing string methods and also added some tests
>>in testsuite/actionscript.all/String.as. I'll soon post a patch on savannah.
>>Hope it's not that bad :D
> 
> 
> Thank you very much. Consider checking with valgrind to see if
> your code does anything nasty :)

Uhh, didn't know valgrind before, shame on me :/ It's a very cool program :D
I ran valgrind like that

address@hidden:~/software/gnash/cvs/gnash/testsuite/actionscript.all$
valgrind ../../gui/gnash  -1 -r 0 -v String.swf

Is this reasonable? I think the output is OK as valgrind looks OK even
though I don't understand the "suppressed: 17 from 1" part of it. I
attached the output of the above command. At least those message are way
before my code gets executed.



cheers,
Michael
==4981== Memcheck, a memory error detector for x86-linux.
==4981== Copyright (C) 2002-2005, and GNU GPL'd, by Julian Seward et al.
==4981== Using valgrind-2.4.0, a program supervision framework for x86-linux.
==4981== Copyright (C) 2000-2005, and GNU GPL'd, by Julian Seward et al.
==4981== For more details, rerun with: -v
==4981== 
==4982== 
==4982== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 17 from 1)
==4982== malloc/free: in use at exit: 0 bytes in 0 blocks.
==4982== malloc/free: 0 allocs, 0 frees, 0 bytes allocated.
==4982== For counts of detected errors, rerun with: -v
==4982== No malloc'd blocks -- no leaks are possible.
==4984== 
==4984== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 17 from 1)
==4984== malloc/free: in use at exit: 0 bytes in 0 blocks.
==4984== malloc/free: 0 allocs, 0 frees, 0 bytes allocated.
==4984== For counts of detected errors, rerun with: -v
==4984== No malloc'd blocks -- no leaks are possible.
==4983== 
==4983== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 17 from 1)
==4983== malloc/free: in use at exit: 0 bytes in 0 blocks.
==4983== malloc/free: 0 allocs, 0 frees, 0 bytes allocated.
==4983== For counts of detected errors, rerun with: -v
==4983== No malloc'd blocks -- no leaks are possible.
==4986== 
==4986== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 17 from 1)
==4986== malloc/free: in use at exit: 0 bytes in 0 blocks.
==4986== malloc/free: 0 allocs, 0 frees, 0 bytes allocated.
==4986== For counts of detected errors, rerun with: -v
==4986== No malloc'd blocks -- no leaks are possible.
==4985== 
==4985== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 17 from 1)
==4985== malloc/free: in use at exit: 0 bytes in 0 blocks.
==4985== malloc/free: 0 allocs, 0 frees, 0 bytes allocated.
==4985== For counts of detected errors, rerun with: -v
==4985== No malloc'd blocks -- no leaks are possible.
==4988== 
==4988== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 17 from 1)
==4988== malloc/free: in use at exit: 0 bytes in 0 blocks.
==4988== malloc/free: 0 allocs, 0 frees, 0 bytes allocated.
==4988== For counts of detected errors, rerun with: -v
==4988== No malloc'd blocks -- no leaks are possible.
==4991== 
==4991== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 17 from 1)
==4991== malloc/free: in use at exit: 0 bytes in 0 blocks.
==4991== malloc/free: 0 allocs, 0 frees, 0 bytes allocated.
==4991== For counts of detected errors, rerun with: -v
==4991== No malloc'd blocks -- no leaks are possible.
==4992== 
==4992== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 17 from 1)
==4992== malloc/free: in use at exit: 0 bytes in 0 blocks.
==4992== malloc/free: 0 allocs, 0 frees, 0 bytes allocated.
==4992== For counts of detected errors, rerun with: -v
==4992== No malloc'd blocks -- no leaks are possible.
21:54:00: Verbose output turned on
21:54:00: Base url set to: 
file:///home/maiden/software/gnash/cvs/gnash/testsuite/actionscript.all/String.swf
21:54:00: Movie 
file:///home/maiden/software/gnash/cvs/gnash/testsuite/actionscript.all/String.swf
 added to library
21:54:00: [$Id: String.as,v 1.4 2006/11/05 20:36:35 strk Exp $]
21:54:00: SWF - Gnash-cvs-20061121
21:54:00: PASSED: a.charCodeAt(0) == 119 [10]
21:54:00: PASSED: a.charCodeAt(1) == 97 [11]
21:54:00: PASSED: a.charCodeAt(2) == 108 [12]
21:54:00: PASSED: a.charCodeAt(3) == 108 [13]
21:54:00: PASSED: a.charCodeAt(4) == 97 [14]
21:54:00: PASSED: a.charAt(0) == "w" [15]
21:54:00: PASSED: a.charAt(1) == "a" [16]
21:54:00: PASSED: a.charAt(2) == "l" [17]
21:54:00: PASSED: a.charAt(3) == "l" [18]
21:54:00: PASSED: a.charAt(4) == "a" [19]
21:54:00: PASSED: a.indexOf("lawa") == 3 [20]
21:54:00: PASSED: a.lastIndexOf("lawa") == 8 [21]
21:54:00: PASSED: a.indexOf("lawas") == 8 [22]
21:54:00: PASSED: a.indexOf("hinG") == 13 [23]
21:54:00: PASSED: a.indexOf("hing") == -1 [24]
21:54:00: PASSED: a.split()[0] == "wallawallawashinGTON" [25]
21:54:00: PASSED: a.split().length == 1 [26]
21:54:00: PASSED: a.split() instanceof Array [27]
21:54:00: PASSED: a.split("")[0] == "w" [28]
21:54:00: PASSED: a.split("")[19] == "N" [29]
21:54:00: PASSED: a.split("la")[0] == "wal" [30]
21:54:00: PASSED: a.split("la")[1] == "wal" [31]
21:54:00: PASSED: a.split("la")[2] == "washinGTON" [32]
21:54:00: PASSED: a.split("la").length == 3 [33]
21:54:00: PASSED: b == "abcd" [38]
21:54:00: PASSED: a.toUpperCase() == "WALLAWALLAWASHINGTON" [40]
21:54:00: PASSED: a.toLowerCase() == "wallawallawashington" [41]
21:54:00: PASSED: a.substr(5,2) == "fg" [43]
21:54:00: PASSED: a.substr(5,7) == "fghijkl" [44]
21:54:00: PASSED: a.substr(-1,1) == "z" [45]
21:54:00: PASSED: a.substr(-2,3) == "yz" [46]
21:54:00: PASSED: a.substr(-3,2) == "xy" [47]
21:54:00: PASSED: a.slice(-5,-3) == "vw" [48]
21:54:00: PASSED: a.slice(-4) == "wxyz" [49]
21:54:00: PASSED: a.substring(5,2) == "cde" [50]
21:54:00: PASSED: a.substring(5,7) == "fg" [51]
21:54:00: PASSED: a.length == 26 [52]
21:54:00: PASSED: a.concat("sir ","william",15) == "sir william15" [53]
21:54:00: PASSED: stringInstance.__proto__ != undefined [57]
21:54:00: PASSED: stringInstance.__proto__ == String.prototype [58]
21:54:00: PASSED: String.prototype.constructor != undefined [59]
21:54:00: PASSED: String.prototype.constructor == String [60]
21:54:00: PASSED: stringInstance.__proto__.constructor == String [61]
21:54:00: PASSED: stringInstance instanceof String [64]
21:54:00: PASSED: typeof(a_string) == "string" [70]
21:54:00: PASSED: a_string.substring(0, 4) == "a_st" [71]
21:54:00: PASSED: a_string.substring(-3, 4) == "a_st" [72]
21:54:00: PASSED: a_string.substring(0, -1) == "" [73]
21:54:00: PASSED: a_string.substring(4) == "ring" [74]
21:54:00: PASSED: a_string.substring(16) == "" [75]
21:54:00: PASSED: a_string.substring(-16) == "a_string" [76]
21:54:00: PASSED: a_string.toUpperCase() == "A_STRING" [77]
21:54:00: PASSED: a_string.indexOf("hing") == -1 [78]
21:54:00: PASSED: a_string.indexOf("string") == 2 [79]
21:54:00: PASSED: a_string.charCodeAt(0) == 97 [80]

reply via email to

[Prev in Thread] Current Thread [Next in Thread]