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

Unified Diff: runtime/vm/freelist.h

Issue 150563007: Fix crash bug in free list when allocating write protected memory. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: addressed commment Created 6 years, 10 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/code_patcher.cc ('k') | runtime/vm/freelist.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/freelist.h
diff --git a/runtime/vm/freelist.h b/runtime/vm/freelist.h
index 9bed00ee4dbe89d3288578c806f10f7d9d12c52b..adfeb636395b9b19a13dca2254500f4abfca7832 100644
--- a/runtime/vm/freelist.h
+++ b/runtime/vm/freelist.h
@@ -19,9 +19,6 @@ namespace dart {
// the element at the address following the next_ field.
class FreeListElement {
public:
- // Maximum header size is three words (tags, next, and size).
- static const intptr_t kHeaderSize = 3 * kWordSize;
-
FreeListElement* next() const {
return next_;
}
@@ -43,6 +40,8 @@ class FreeListElement {
static void InitOnce();
+ static intptr_t HeaderSizeFor(intptr_t size);
+
// Used to allocate class for free list elements in Object::InitOnce.
class FakeInstance {
public:
« no previous file with comments | « runtime/vm/code_patcher.cc ('k') | runtime/vm/freelist.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698