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

Unified Diff: runtime/vm/isolate.cc

Issue 1173043002: Reuse empty StoreBufferBlocks. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: address comments Created 5 years, 6 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 | « runtime/vm/isolate.h ('k') | runtime/vm/scavenger.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/isolate.cc
diff --git a/runtime/vm/isolate.cc b/runtime/vm/isolate.cc
index 2432df990bfa34e8945bc702086c827c4bef13c6..3810ee51529153e89971d6fd76c73babc26fc0d0 100644
--- a/runtime/vm/isolate.cc
+++ b/runtime/vm/isolate.cc
@@ -31,6 +31,7 @@
#include "vm/service_isolate.h"
#include "vm/simulator.h"
#include "vm/stack_frame.h"
+#include "vm/store_buffer.h"
#include "vm/stub_code.h"
#include "vm/symbols.h"
#include "vm/tags.h"
@@ -611,7 +612,7 @@ void BaseIsolate::AssertCurrent(BaseIsolate* isolate) {
Isolate::Isolate(const Dart_IsolateFlags& api_flags)
: mutator_thread_(NULL),
vm_tag_(0),
- store_buffer_(),
+ store_buffer_(new StoreBuffer()),
message_notify_callback_(NULL),
name_(NULL),
debugger_name_(NULL),
@@ -686,6 +687,7 @@ Isolate::Isolate(const Dart_IsolateFlags& api_flags)
Isolate::~Isolate() {
free(name_);
free(debugger_name_);
+ delete store_buffer_;
delete heap_;
delete object_store_;
delete api_state_;
« no previous file with comments | « runtime/vm/isolate.h ('k') | runtime/vm/scavenger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698