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

Side by Side Diff: runtime/vm/heap.h

Issue 3005623002: Revert "Puts TLABs back into the build and fixes assert failure." (Closed)
Patch Set: Created 3 years, 3 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 unified diff | Download patch
« no previous file with comments | « no previous file | runtime/vm/heap.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef RUNTIME_VM_HEAP_H_ 5 #ifndef RUNTIME_VM_HEAP_H_
6 #define RUNTIME_VM_HEAP_H_ 6 #define RUNTIME_VM_HEAP_H_
7 7
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/allocation.h" 9 #include "vm/allocation.h"
10 #include "vm/flags.h" 10 #include "vm/flags.h"
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 242
243 Isolate* isolate() const { return isolate_; } 243 Isolate* isolate() const { return isolate_; }
244 244
245 Monitor* barrier() const { return barrier_; } 245 Monitor* barrier() const { return barrier_; }
246 Monitor* barrier_done() const { return barrier_done_; } 246 Monitor* barrier_done() const { return barrier_done_; }
247 247
248 void SetupImagePage(void* pointer, uword size, bool is_executable) { 248 void SetupImagePage(void* pointer, uword size, bool is_executable) {
249 old_space_.SetupImagePage(pointer, size, is_executable); 249 old_space_.SetupImagePage(pointer, size, is_executable);
250 } 250 }
251 251
252 intptr_t CalculateTLABSize();
253 void MakeTLABIterable(Thread* thread);
254 void AbandonRemainingTLAB(Thread* thread);
255
256 private: 252 private:
257 class GCStats : public ValueObject { 253 class GCStats : public ValueObject {
258 public: 254 public:
259 GCStats() {} 255 GCStats() {}
260 intptr_t num_; 256 intptr_t num_;
261 Heap::Space space_; 257 Heap::Space space_;
262 Heap::GCReason reason_; 258 Heap::GCReason reason_;
263 259
264 class Data : public ValueObject { 260 class Data : public ValueObject {
265 public: 261 public:
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 // Note: During this scope, the code pages are non-executable. 399 // Note: During this scope, the code pages are non-executable.
404 class WritableVMIsolateScope : StackResource { 400 class WritableVMIsolateScope : StackResource {
405 public: 401 public:
406 explicit WritableVMIsolateScope(Thread* thread); 402 explicit WritableVMIsolateScope(Thread* thread);
407 ~WritableVMIsolateScope(); 403 ~WritableVMIsolateScope();
408 }; 404 };
409 405
410 } // namespace dart 406 } // namespace dart
411 407
412 #endif // RUNTIME_VM_HEAP_H_ 408 #endif // RUNTIME_VM_HEAP_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698