The time spent in v8::Script::Compile is not counted in the aforementioned 
blocks. There is no code being emitted as strings in run time. Does any 
unoptimized compilation happen in Script::Run in this case?

-- Borislav

On Tue, May 10, 2016 at 6:32 PM, Jakob Kummerow wrote:

> FLAG_concurrent_recompilation only affects (parts of) optimized 
> _re_compilation. Initial unoptimized compilation of a function always 
> happens on the main thread. Optimized recompilation also performs parts of 
> its work on the main thread.
>
> On Tue, May 10, 2016 at 6:21 PM, Borislav Stanimirov <[email protected] 
> <javascript:>> wrote:
>
>> Hi,
>>
>> I'm running v8 on Android with all settings set to default (a trace of 
>> v8::internal::FLAG_concurrent_recompilation shows true). When the 
>> application starts there are noticeable blocks (from tens to sometimes two 
>> hundred milliseconds) in the main thread. When I rerun the same code, 
>> without restarting the executable, those blocks are not seen. JIT 
>> compilation seems like the best candidate for them.
>>
>> The curious thing is that when I set FLAG_concurrent_recompilation to 
>> false, that doesn't seem to affect them in any way. (It kinda seems to me 
>> that the main thread experiences a tiny bit more blocks with the flag off, 
>> but it can also be a measurement error. I'm not sure)
>>
>> Now, what I'm thinking is that I may not be using v8 right from my C++ 
>> code which causes the concurrent recompilation to somehow block.
>>
>> So... what (if any) v8 C++ functions could block the thread until the 
>> recompilation is finished?
>>
>> -- Borislav
>>
>> -- 
>> -- 
>> v8-users mailing list
>> [email protected] <javascript:>
>> 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] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
-- 
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/d/optout.

Reply via email to