Revision: 21102
Author: [email protected]
Date: Wed Apr 30 18:13:24 2014 UTC
Log: When maximum space size flags are set, overwrite the resource
constraints.
BUG=
[email protected]
Review URL: https://codereview.chromium.org/262653002
http://code.google.com/p/v8/source/detail?r=21102
Modified:
/branches/bleeding_edge/src/heap.cc
=======================================
--- /branches/bleeding_edge/src/heap.cc Wed Apr 30 17:27:40 2014 UTC
+++ /branches/bleeding_edge/src/heap.cc Wed Apr 30 18:13:24 2014 UTC
@@ -4985,6 +4985,17 @@
intptr_t max_executable_size,
intptr_t code_range_size) {
if (HasBeenSetUp()) return false;
+
+ // If max space size flags are specified overwrite the configuration.
+ if (FLAG_max_new_space_size > 0) {
+ max_semispace_size = FLAG_max_new_space_size * kLumpOfMemory;
+ }
+ if (FLAG_max_old_space_size > 0) {
+ max_old_gen_size = FLAG_max_old_space_size * kLumpOfMemory;
+ }
+ if (FLAG_max_executable_size > 0) {
+ max_executable_size = FLAG_max_executable_size * kLumpOfMemory;
+ }
if (FLAG_stress_compaction) {
// This will cause more frequent GCs when stressing.
--
--
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/d/optout.