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

Unified Diff: runtime/vm/scavenger.h

Issue 2992753002: Prepares allocation for proper sync with mutator and bg threads. (Closed)
Patch Set: Adds thread locking to functions that iterate over threads 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 side-by-side diff with in-line comments
Download patch
Index: runtime/vm/scavenger.h
diff --git a/runtime/vm/scavenger.h b/runtime/vm/scavenger.h
index 0721fe2f91615dbc0fc9701028de5d05aec93ef9..df29bd9b11371b9126634b3022b40b468b73a92e 100644
--- a/runtime/vm/scavenger.h
+++ b/runtime/vm/scavenger.h
@@ -234,8 +234,10 @@ class Scavenger {
void AllocateExternal(intptr_t size);
void FreeExternal(intptr_t size);
- uword FlushTLS() const;
- void UnflushTLS(uword value) const;
+ uword FindTopOfSpace(Isolate* isolate) const;
+ void MakeALLTLABsIterable(Isolate* isolate) const;
+ void FlushTLS() const;
+ void AbandonAllTLABs(Isolate* isolate);
uword FirstObjectStart() const { return to_->start() | object_alignment_; }
private:
@@ -334,6 +336,7 @@ class Scavenger {
bool failed_to_promote_;
+ Mutex* space_lock_;
friend class ScavengerVisitor;
friend class ScavengerWeakVisitor;
« no previous file with comments | « runtime/vm/heap.cc ('k') | runtime/vm/scavenger.cc » ('j') | runtime/vm/scavenger.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698