Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(77)

Unified Diff: src/regexp-stack.cc

Issue 11301014: Fix performance regression introduced by r12812. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/regexp-stack.cc
diff --git a/src/regexp-stack.cc b/src/regexp-stack.cc
index fda7253edcee150a6cac9668e0f9db726bd135ce..325a1496c98c9a26d05c9fffc1c97be132e401f0 100644
--- a/src/regexp-stack.cc
+++ b/src/regexp-stack.cc
@@ -51,6 +51,7 @@ RegExpStack::RegExpStack()
RegExpStack::~RegExpStack() {
+ thread_local_.Free();
}
@@ -72,7 +73,7 @@ char* RegExpStack::RestoreStack(char* from) {
void RegExpStack::Reset() {
- if (thread_local_.memory_size_ >= kMinimumStackSize) {
+ if (thread_local_.memory_size_ > kMinimumStackSize) {
DeleteArray(thread_local_.memory_);
thread_local_ = ThreadLocal();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698