commit | 5301cd241b4d8afbfc1211e107c41f1b15c6bd48 | [log] [tgz] |
---|---|---|
author | Mathieu Chartier <mathieuc@google.com> | Thu May 31 12:11:36 2012 -0700 |
committer | Mathieu Chartier <mathieuc@google.com> | Thu May 31 14:00:37 2012 -0700 |
tree | 187ea24dc81ee1b6ea713d6d037fc22a71e22df7 | |
parent | b45a1f5c0d70c3694fbf941a5419e2eaa5dcfb80 [diff] [blame] |
Mark stack create once per heap. Mark stack is now created during heap initialization and is then re-used for each GC. This helps to prevent fragmentation of the heap. Change-Id: I5dd1bdfb58452415b88bfeb0c05a41ecbca09696
diff --git a/src/mark_stack.h b/src/mark_stack.h index 4301e0e..cd308c5 100644 --- a/src/mark_stack.h +++ b/src/mark_stack.h
@@ -50,6 +50,8 @@ return ptr_ == begin_; } + void Reset(); + private: MarkStack() : begin_(NULL), limit_(NULL), ptr_(NULL) {