Commit 42c7166e authored by ulan@chromium.org's avatar ulan@chromium.org

Fix performance regression introduced by r12812.

R=yangguo@chromium.org

Review URL: https://chromiumcodereview.appspot.com/11301014

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@12829 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent e96d4904
...@@ -51,6 +51,7 @@ RegExpStack::RegExpStack() ...@@ -51,6 +51,7 @@ RegExpStack::RegExpStack()
RegExpStack::~RegExpStack() { RegExpStack::~RegExpStack() {
thread_local_.Free();
} }
...@@ -72,7 +73,7 @@ char* RegExpStack::RestoreStack(char* from) { ...@@ -72,7 +73,7 @@ char* RegExpStack::RestoreStack(char* from) {
void RegExpStack::Reset() { void RegExpStack::Reset() {
if (thread_local_.memory_size_ >= kMinimumStackSize) { if (thread_local_.memory_size_ > kMinimumStackSize) {
DeleteArray(thread_local_.memory_); DeleteArray(thread_local_.memory_);
thread_local_ = ThreadLocal(); thread_local_ = ThreadLocal();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment