Skip to content

Commit d6cc6b2

Browse files
committed
Refactor mmtkNoBarrier
1 parent d93dda6 commit d6cc6b2

File tree

4 files changed

+16
-6
lines changed

4 files changed

+16
-6
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#ifndef MMTK_OPENJDK_MMTK_NO_BARRIER_SET_ASSEMBLER_RISCV_HPP
2+
#define MMTK_OPENJDK_MMTK_NO_BARRIER_SET_ASSEMBLER_RISCV_HPP
3+
4+
class MMTkNoBarrierSetAssembler: public MMTkBarrierSetAssembler {};
5+
#endif // MMTK_OPENJDK_MMTK_NO_BARRIER_SET_ASSEMBLER_RISCV_HPP
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#ifndef MMTK_OPENJDK_MMTK_NO_BARRIER_SET_ASSEMBLER_X86_HPP
2+
#define MMTK_OPENJDK_MMTK_NO_BARRIER_SET_ASSEMBLER_X86_HPP
3+
4+
class MMTkNoBarrierSetAssembler: public MMTkBarrierSetAssembler {};
5+
#endif // MMTK_OPENJDK_MMTK_NO_BARRIER_SET_ASSEMBLER_X86_HPP
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#ifndef MMTK_OPENJDK_MMTK_NO_BARRIER_SET_ASSEMBLER_ZERO_HPP
2+
#define MMTK_OPENJDK_MMTK_NO_BARRIER_SET_ASSEMBLER_ZERO_HPP
3+
4+
class MMTkNoBarrierSetAssembler;
5+
#endif // MMTK_OPENJDK_MMTK_NO_BARRIER_SET_ASSEMBLER_ZERO_HPP

openjdk/share/barriers/mmtkNoBarrier.hpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#include "../mmtkBarrierSet.hpp"
55
#include "utilities/macros.hpp"
66
#include CPU_HEADER(mmtkBarrierSetAssembler)
7+
#include CPU_HEADER(mmtkNoBarrierSetAssembler)
78
#ifdef COMPILER1
89
#include "../mmtkBarrierSetC1.hpp"
910
class MMTkNoBarrierSetC1: public MMTkBarrierSetC1 {};
@@ -20,12 +21,6 @@ class MMTkNoBarrierSetC2;
2021

2122
class MMTkNoBarrierSetRuntime: public MMTkBarrierSetRuntime {};
2223

23-
#ifndef ZERO
24-
class MMTkNoBarrierSetAssembler: public MMTkBarrierSetAssembler {};
25-
#else
26-
class MMTkNoBarrierSetAssembler;
27-
#endif
28-
2924
struct MMTkNoBarrier: MMTkBarrierImpl<
3025
MMTkNoBarrierSetRuntime,
3126
MMTkNoBarrierSetAssembler,

0 commit comments

Comments
 (0)