Re: [v8-users] Theory - Interprocess communication with underlying memory - ArrayBuffer - Safe?

2014-09-29 Thread Ben Noordhuis
On Sun, Sep 28, 2014 at 3:33 PM, idleman wrote: > I have maybe a hard question for you guys, but probably a interesting one > and > would be very happy if you can at least give me some hint/information in > this > subject. > > Say you construct a new v8::ArrayBuffer from a raw bit of memory: > > a

Re: [v8-users] "Forking" JavaScript context

2014-09-29 Thread Ben Noordhuis
On Sat, Sep 27, 2014 at 1:17 AM, Francisco Tolmasky wrote: > Hi guys, > > Not sure if this is possible, but basically what I'd like to be able to do > is "fork" a JavaScript context. > Essentially, at some point in my application I want to take the existing > context, copy it, then continue > muta

Re: [v8-users] How can I kill a JS function at runtime for a V8 unit test?

2014-09-29 Thread Isiah Meadows
Problem then, it should take no more than a second or two. Basically it is a "this should not hang the engine" test. On Sep 26, 2014 9:56 AM, "Jakob Kummerow" wrote: > On Fri, Sep 26, 2014 at 3:18 PM, Isiah Meadows > wrote: > >> >> >> On Thursday, September 25, 2014 2:01:03 PM UTC-4, Jakob Kumme

Re: [v8-users] How can I kill a JS function at runtime for a V8 unit test?

2014-09-29 Thread Jakob Kummerow
I don't understand what you're saying. Do you mean your testcase should, when all is well, finish in a second or two? That's much too slow. Or do you mean that after 1-2 seconds it would be OK to cancel it and treat it as a failure, because in the good case it finishes much faster? As I said before

Re: [v8-users] Re: Is there a diagram or document about structure of v8 heap?

2014-09-29 Thread 'Andreas Rossberg' via v8-users
On 27 September 2014 15:25, Peter Stoyanov wrote: > May be this one: > http://strongloop.com/strongblog/node-js-performance-garbage-collection/ Interesting to learn that V8's GC design just "borrows from Ruby"... /Andreas -- -- v8-users mailing list v8-users@googlegroups.com http://groups.goo

Re: [v8-users] Re: Is there a diagram or document about structure of v8 heap?

2014-09-29 Thread Ben Noordhuis
On Mon, Sep 29, 2014 at 6:43 PM, 'Andreas Rossberg' via v8-users wrote: > On 27 September 2014 15:25, Peter Stoyanov wrote: >> May be this one: >> http://strongloop.com/strongblog/node-js-performance-garbage-collection/ > > Interesting to learn that V8's GC design just "borrows from Ruby"... The

Re: [v8-users] Theory - Interprocess communication with underlying memory - ArrayBuffer - Safe?

2014-09-29 Thread idleman
Thanks for answer Ben! It was just as I thought. :-) Den måndagen den 29:e september 2014 kl. 12:45:07 UTC+2 skrev Ben Noordhuis: > > On Sun, Sep 28, 2014 at 3:33 PM, idleman > > wrote: > > I have maybe a hard question for you guys, but probably a interesting > one > > and > > would be very h

[v8-users] V8::TerminateExecution().

2014-09-29 Thread Jane Chen
I'm following the example in TestTerminateOnlyV8ThreadFromThreadItself() in test-thread-termination.cc, and it works for me: function f() { var term = true; try { while (true) { if (term) terminate(); term = false; } print("not terminated."); } catch (err) { prin