Skip to content

Commit ac69a30

Browse files
[vm, gc] Rename store_buffer.h as pointer_block.h as it also defines the mark stack blocks.
Bug: dart-lang/sdk#34002 Change-Id: I85ce8c639bbbfc9167c7c5462ff8756a81ecf3d3 Reviewed-on: https://dart-review.googlesource.com/68841 Reviewed-by: Zach Anderson <zra@google.com> Reviewed-by: Siva Annamalai <asiva@google.com>
1 parent 9510738 commit ac69a30

File tree

8 files changed

+13
-11
lines changed

8 files changed

+13
-11
lines changed

runtime/vm/dart.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#include "vm/heap/become.h"
1616
#include "vm/heap/freelist.h"
1717
#include "vm/heap/heap.h"
18-
#include "vm/heap/store_buffer.h"
18+
#include "vm/heap/pointer_block.h"
1919
#include "vm/isolate.h"
2020
#include "vm/kernel_isolate.h"
2121
#include "vm/malloc_hooks.h"

runtime/vm/heap/heap_sources.gni

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ heap_sources = [
1717
"marker.h",
1818
"pages.cc",
1919
"pages.h",
20+
"pointer_block.cc",
21+
"pointer_block.h",
2022
"safepoint.cc",
2123
"safepoint.h",
2224
"scavenger.cc",
2325
"scavenger.h",
2426
"spaces.h",
25-
"store_buffer.cc",
26-
"store_buffer.h",
2727
"sweeper.cc",
2828
"sweeper.h",
2929
"verifier.cc",

runtime/vm/heap/marker.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#include "vm/allocation.h"
88
#include "vm/dart_api_state.h"
99
#include "vm/heap/pages.h"
10-
#include "vm/heap/store_buffer.h"
10+
#include "vm/heap/pointer_block.h"
1111
#include "vm/isolate.h"
1212
#include "vm/log.h"
1313
#include "vm/object_id_ring.h"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5-
#include "vm/heap/store_buffer.h"
5+
#include "vm/heap/pointer_block.h"
66

77
#include "platform/assert.h"
88
#include "vm/lockers.h"
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5-
#ifndef RUNTIME_VM_HEAP_STORE_BUFFER_H_
6-
#define RUNTIME_VM_HEAP_STORE_BUFFER_H_
5+
#ifndef RUNTIME_VM_HEAP_POINTER_BLOCK_H_
6+
#define RUNTIME_VM_HEAP_POINTER_BLOCK_H_
77

88
#include "platform/assert.h"
99
#include "vm/globals.h"
@@ -173,6 +173,8 @@ class MarkingStack : public BlockStack<kMarkingStackBlockSize> {
173173
}
174174
};
175175

176+
typedef MarkingStack::Block MarkingStackBlock;
177+
176178
} // namespace dart
177179

178-
#endif // RUNTIME_VM_HEAP_STORE_BUFFER_H_
180+
#endif // RUNTIME_VM_HEAP_POINTER_BLOCK_H_

runtime/vm/heap/scavenger.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
#include "vm/dart.h"
88
#include "vm/dart_api_state.h"
99
#include "vm/flag_list.h"
10+
#include "vm/heap/pointer_block.h"
1011
#include "vm/heap/safepoint.h"
11-
#include "vm/heap/store_buffer.h"
1212
#include "vm/heap/verifier.h"
1313
#include "vm/heap/weak_table.h"
1414
#include "vm/isolate.h"

runtime/vm/isolate.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
#include "vm/deopt_instructions.h"
2121
#include "vm/flags.h"
2222
#include "vm/heap/heap.h"
23+
#include "vm/heap/pointer_block.h"
2324
#include "vm/heap/safepoint.h"
24-
#include "vm/heap/store_buffer.h"
2525
#include "vm/heap/verifier.h"
2626
#include "vm/image_snapshot.h"
2727
#include "vm/interpreter.h"

runtime/vm/thread.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#include "vm/constants.h"
1414
#include "vm/globals.h"
1515
#include "vm/handles.h"
16-
#include "vm/heap/store_buffer.h"
16+
#include "vm/heap/pointer_block.h"
1717
#include "vm/os_thread.h"
1818
#include "vm/runtime_entry_list.h"
1919

0 commit comments

Comments
 (0)