[v8-users] Re: OOM and AddNearHeapLimitCallback

2018-06-04 Thread mogill
Hi Prakash, I recommend taking a look at Laverdet's approach used in Node.js: https://github.com/laverdet/isolated-vm -J On Monday, June 4, 2018 at 3:35:58 AM UTC-7, Prakash Bailkeri wrote: > > Hello V8-Experts, > > I am working on a project where I need to run

[v8-users] Re: OOM and AddNearHeapLimitCallback

2018-06-04 Thread Zac Hansen
Every time this question is asked, the answer always seems to be "run it in a separate process space." There is no way to reliably protect / detect and recover from memory issues in V8. There's usually a "patches welcome as long as it has no affect on performance" at the end. On Monday,

[v8-users] How to call a user-defined function from my object file in v8 code.

2018-06-04 Thread Abhishek Kanike
Hi, I need some help in using user-defined object files with v8 code. How can i call a c++ function from v8 engine code. For example, from here ( https://cs.chromium.org/chromium/src/v8/src/base/platform/time.cc?dr=C=0=382) I want to call a function of my own c++ file. Two question arise here:

Re: [v8-users] v8 version to upgrade to.

2018-06-04 Thread Ben Noordhuis
On Mon, Jun 4, 2018 at 6:11 PM, Jane Chen wrote: > Thanks Ben! > > Last time when we upgraded to 5.3, we used gcc 4.8 on Linux, VS 2015 on > Windows to compile v8 and our own product. Do we need to use a higher > version of compiler this time? We upgraded our baselines to gcc 4.9.4 and VS 2017

Re: [v8-users] v8 version to upgrade to.

2018-06-04 Thread Jane Chen
Thanks Ben! Last time when we upgraded to 5.3, we used gcc 4.8 on Linux, VS 2015 on Windows to compile v8 and our own product. Do we need to use a higher version of compiler this time? On Monday, June 4, 2018 at 1:09:33 AM UTC-7, Ben Noordhuis wrote: > > On Mon, Jun 4, 2018 at 2:36 AM, Jane

[v8-users] OOM and AddNearHeapLimitCallback

2018-06-04 Thread Prakash Bailkeri
Hello V8-Experts, I am working on a project where I need to run untrusted user provided javascript. I am worried about faulty user script bringing down the entire application by hogging memory. So, idea is to implement budgeting of heap memory for each javascript. I looked at different

Re: [v8-users] v8 version to upgrade to.

2018-06-04 Thread Ben Noordhuis
On Mon, Jun 4, 2018 at 2:36 AM, Jane Chen wrote: > I am making plans to upgrade v8 for our next major release. We are > currently running 5.3. It looks like that the current stable release is > 6.7. Is this a good version to upgrade to? Is the module API ready to be > used? Any significant