On Tue, 21 Oct 2008 02:34:41 am Anthony Shipman wrote:
> On Mon, 20 Oct 2008 11:16:59 am Pete Gontier wrote:
> > I had to do two things:
> >
> > re-assign the variable holding my test object to another (delete was
> > not enough)
> > collect the garbage explicitly
>
> I can't make it collect my object even when doing
>
> for (i = 0; i < 1000; ++i)
> {
> var x = new jfx.ByteBuffer();
> x = 0;
> gc();
> }
>
> and flags
> --new_space_size=65536 --old_space_size=2500000 --expose_gc --log_handles
> --trace_gc --gc_global
Ignore this. I've got it going.
At one point I was getting a segmentation violation because I wrote
wrap->jsObject_ = Persistent<Object>(args.This());
instead of
wrap->jsObject_ = Persistent<Object>::New(args.This());
I wonder what the use of the first constructor is?
I've also got dumb syntax error messages e.g. writing
for (int i = 0; i < 10; ++i)
{
}
gives me
-------------
<unknown>:146: Uncaught SyntaxError: Unexpected identifier
#
# Fatal error in src/handles-inl.h, line 45
# CHECK(location_ != __null) failed
#
Aborted
-------------
where 146 is not a valid line number.
--
Anthony Shipman Mamas don't let your babies
[EMAIL PROTECTED] grow up to be outsourced.
--~--~---------~--~----~------------~-------~--~----~
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
-~----------~----~----~----~------~----~------~--~---