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

Unified Diff: runtime/vm/scavenger.h

Issue 18051007: - Revert r24564 and r24563 due to unexplained malloc corruption. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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/pages.cc ('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/scavenger.h
===================================================================
--- runtime/vm/scavenger.h (revision 24564)
+++ runtime/vm/scavenger.h (working copy)
@@ -5,6 +5,8 @@
#ifndef VM_SCAVENGER_H_
#define VM_SCAVENGER_H_
+#include <map>
+
#include "platform/assert.h"
#include "platform/utils.h"
#include "vm/flags.h"
@@ -87,6 +89,12 @@
void WriteProtect(bool read_only);
+ void SetPeer(RawObject* raw_obj, void* peer);
+
+ void* GetPeer(RawObject* raw_obj);
+
+ int64_t PeerCount() const;
+
private:
// Ids for time and data records in Heap::GCStats.
enum {
@@ -137,7 +145,7 @@
return end_ < to_->end();
}
- void ProcessWeakTables();
+ void ProcessPeerReferents();
VirtualMemory* space_;
MemoryRegion* to_;
@@ -145,6 +153,9 @@
Heap* heap_;
+ typedef std::map<RawObject*, void*> PeerTable;
+ PeerTable peer_table_;
+
// Current allocation top and end. These values are being accessed directly
// from generated code.
uword top_;
« no previous file with comments | « runtime/vm/pages.cc ('k') | runtime/vm/scavenger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698