https://codereview.chromium.org/40233002/diff/1/include/v8-defaults.h
File include/v8-defaults.h (right):

https://codereview.chromium.org/40233002/diff/1/include/v8-defaults.h#newcode45
include/v8-defaults.h:45: uint64_t total_physical_memory);
There was probably some misunderstanding on our side. I thought we
settled on the idea of explicitly initializing a ResourceConstraints
object as discussed with danno. We don't want to have any more global
state in V8.

Can you just add the explicit total_physical_memory parameter to
ConfigureResourceConstraintsForCurrentPlatform() below, drop the
SetDefaultResourceConstraintsForCurrentPlatform() method and do the
following in d8.cc (and similar in Blink)?

ResourceConstraints constraints;
if (!ConfigureResourceConstraintsForCurrentPlatform(&constraints,
OS::TotalPhysicalMemory())) { Fatal... }
SetResourceConstraints(isolate, &constraints);

https://codereview.chromium.org/40233002/diff/1/src/defaults.cc
File src/defaults.cc (right):

https://codereview.chromium.org/40233002/diff/1/src/defaults.cc#newcode48
src/defaults.cc:48: static uint64_t g_total_physical_memory = 0;
Please no more global state. See comment in v8-defaults.h.

https://codereview.chromium.org/40233002/

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" 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/groups/opt_out.

Reply via email to