Revision: 12829
Author:   [email protected]
Date:     Mon Oct 29 04:45:57 2012
Log:      Fix performance regression introduced by r12812.

[email protected]

Review URL: https://chromiumcodereview.appspot.com/11301014
http://code.google.com/p/v8/source/detail?r=12829

Modified:
 /branches/bleeding_edge/src/regexp-stack.cc

=======================================
--- /branches/bleeding_edge/src/regexp-stack.cc Thu Oct 25 04:10:13 2012
+++ /branches/bleeding_edge/src/regexp-stack.cc Mon Oct 29 04:45:57 2012
@@ -51,6 +51,7 @@


 RegExpStack::~RegExpStack() {
+  thread_local_.Free();
 }


@@ -72,7 +73,7 @@


 void RegExpStack::Reset() {
-  if (thread_local_.memory_size_ >= kMinimumStackSize) {
+  if (thread_local_.memory_size_ > kMinimumStackSize) {
     DeleteArray(thread_local_.memory_);
     thread_local_ = ThreadLocal();
   }

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to