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

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

Issue 2992753002: Prepares allocation for proper sync with mutator and bg threads. (Closed)
Patch Set: Created 3 years, 4 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') | runtime/vm/heap.cc » ('J')
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 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 Isolate* isolate() const { return isolate_; } 250 Isolate* isolate() const { return isolate_; }
251 251
252 Monitor* barrier() const { return barrier_; } 252 Monitor* barrier() const { return barrier_; }
253 Monitor* barrier_done() const { return barrier_done_; } 253 Monitor* barrier_done() const { return barrier_done_; }
254 254
255 void SetupImagePage(void* pointer, uword size, bool is_executable) { 255 void SetupImagePage(void* pointer, uword size, bool is_executable) {
256 old_space_.SetupImagePage(pointer, size, is_executable); 256 old_space_.SetupImagePage(pointer, size, is_executable);
257 } 257 }
258 258
259 intptr_t CalculateTLABSize(); 259 intptr_t CalculateTLABSize();
260 void FillRemainingTLAB(Thread* thread);
rmacnak 2017/08/01 21:51:25 "MakeTLABIterable" ? (Compare PageSpace::MakeIte
danunez 2017/08/01 23:25:34 Done.
260 void AbandonRemainingTLAB(Thread* thread); 261 void AbandonRemainingTLAB(Thread* thread);
261 262
262 private: 263 private:
263 class GCStats : public ValueObject { 264 class GCStats : public ValueObject {
264 public: 265 public:
265 GCStats() {} 266 GCStats() {}
266 intptr_t num_; 267 intptr_t num_;
267 Heap::Space space_; 268 Heap::Space space_;
268 Heap::GCReason reason_; 269 Heap::GCReason reason_;
269 270
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 // Note: During this scope, the code pages are non-executable. 400 // Note: During this scope, the code pages are non-executable.
400 class WritableVMIsolateScope : StackResource { 401 class WritableVMIsolateScope : StackResource {
401 public: 402 public:
402 explicit WritableVMIsolateScope(Thread* thread); 403 explicit WritableVMIsolateScope(Thread* thread);
403 ~WritableVMIsolateScope(); 404 ~WritableVMIsolateScope();
404 }; 405 };
405 406
406 } // namespace dart 407 } // namespace dart
407 408
408 #endif // RUNTIME_VM_HEAP_H_ 409 #endif // RUNTIME_VM_HEAP_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/heap.cc » ('j') | runtime/vm/heap.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698