Version 1.3.6

Add support for forceful termination of JavaScript execution.

Add low memory notification to the API. The embedding host can signal a low memory situation to V8.

Changed the handling of global handles (persistent handles in the API sense) to avoid issues regarding allocation of new global handles during weak handle callbacks.

Changed the growth policy of the young space.

Fixed a GC issue introduced in version 1.3.5.



git-svn-id: http://v8.googlecode.com/svn/trunk@2739 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
diff --git a/src/spaces.cc b/src/spaces.cc
index 9227a87..337f014 100644
--- a/src/spaces.cc
+++ b/src/spaces.cc
@@ -1079,9 +1079,9 @@
 
 
 bool SemiSpace::Grow() {
-  // Commit 50% extra space but only up to maximum capacity.
+  // Double the semispace size but only up to maximum capacity.
   int maximum_extra = maximum_capacity_ - capacity_;
-  int extra = Min(RoundUp(capacity_ / 2, OS::AllocateAlignment()),
+  int extra = Min(RoundUp(capacity_, OS::AllocateAlignment()),
                   maximum_extra);
   if (!MemoryAllocator::CommitBlock(high(), extra, executable())) {
     return false;