On Tue Oct 07 2014 at 8:58:45 AM Joseph Sullivan <[email protected]>
wrote:

> The "Hello World" example still compiles and runs without v8::Platform.
> Can you explain?
>

It's probably too small to trigger garbage collection. Currently, the GC
system is the only user of v8::Platform.


>
> Also, I'm going to run several V8 isolates/contexts, each in a different
> thread.  Do I need multiple platform instances as well?
>

A single, process wide v8::Platform instance is good enough. The GC system
currently only uses background tasks.

best
-jochen


>
> Cheers,
>
> Joseph
>
>
> On Friday, September 5, 2014 12:54:46 AM UTC-7, Jochen Eisinger wrote:
>
>> ... just a reminder that latest V8 will now crash if you don't provide a
>> v8::Platform implementation or install the one we ship in the
>> v8_libplatform library.
>>
>> best
>> -jochen
>>
>
>>
>> On Tue, Jul 22, 2014 at 10:55 AM, Jochen Eisinger <[email protected]>
>> wrote:
>>
>>> Hey,
>>>
>>> from V8 version 3.28 on and going forward, embedders should provide an
>>> implementation of the v8::Platform interface (defined in
>>> include/v8-platform.h). In the future, we will use this interface to run GC
>>> related background tasks and optimizing compiler tasks instead of spinning
>>> up threads internally.
>>>
>>> For your convenience (and for the test runners...) we bundled a default
>>> implementation with V8: You can include the header 
>>> include/libplatform/libplatform.h
>>> and link against libv8_libplatform.(a|lib). The library defines a factory
>>> method to create an instance of the platform implementation, and a method
>>> you should regularly call from your main loop to run tasks scheduled for
>>> the main thread.
>>>
>>> The platform instance has to be registered with V8 using
>>> v8::V8::InitializePlatform() and deregistered with
>>> v8::V8::ShutdownPlatform().
>>>
>>> best
>>> -jochen
>>>
>>
>>  --
> --
> 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.
>

-- 
-- 
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