Skip to content

Commit bd5eb9c

Browse files
committed
Have zero working with no barrier
1 parent f309a4e commit bd5eb9c

13 files changed

+50
-432
lines changed

mmtk/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,5 @@ gencopy = []
5858
marksweep = []
5959
pageprotect = []
6060
immix = []
61+
62+
jfr = []

mmtk/src/abi.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ pub struct Klass {
6666
pub class_loader_data: OpaquePointer, // ClassLoaderData*
6767
pub vtable_len: i32,
6868
pub access_flags: i32, // AccessFlags
69+
#[cfg(feature = "jfr")]
6970
pub trace_id: u64, // JFR_ONLY(traceid _trace_id;)
7071
pub shared_class_flags: u16,
7172
pub archived_mirror_index: i32,

openjdk/CompileThirdPartyHeap.gmk

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,14 @@ ifeq ($(MMTK_EXTREME_ASSERTIONS), 1)
3838
endif
3939
endif
4040

41+
ifeq ($(call check-jvm-feature, jfr), true)
42+
ifndef GC_FEATURES
43+
GC_FEATURES=--features jfr
44+
else
45+
GC_FEATURES:=$(strip $(GC_FEATURES))",jfr"
46+
endif
47+
endif
48+
4149
LIB_MMTK := $(JVM_LIB_OUTPUTDIR)/libmmtk_openjdk.so
4250

4351
ifeq ($(DEBUG_LEVEL), release)

openjdk/barriers/mmtkNoBarrier.hpp

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,27 @@
33

44
#include "../mmtkBarrierSet.hpp"
55
#include "../mmtkBarrierSetAssembler_x86.hpp"
6+
#ifdef COMPILER1
67
#include "../mmtkBarrierSetC1.hpp"
8+
class MMTkNoBarrierSetC1: public MMTkBarrierSetC1 {};
9+
#else
10+
class MMTkNoBarrierSetC1;
11+
#endif
12+
13+
#ifdef COMPILER2
714
#include "../mmtkBarrierSetC2.hpp"
15+
class MMTkNoBarrierSetC2: public MMTkBarrierSetC2 {};
16+
#else
17+
class MMTkNoBarrierSetC2;
18+
#endif
819

920
class MMTkNoBarrierSetRuntime: public MMTkBarrierSetRuntime {};
1021

22+
#ifndef ZERO
1123
class MMTkNoBarrierSetAssembler: public MMTkBarrierSetAssembler {};
12-
13-
class MMTkNoBarrierSetC1: public MMTkBarrierSetC1 {};
14-
15-
class MMTkNoBarrierSetC2: public MMTkBarrierSetC2 {};
24+
#else
25+
class MMTkNoBarrierSetAssembler;
26+
#endif
1627

1728
struct MMTkNoBarrier: MMTkBarrierImpl<
1829
MMTkNoBarrierSetRuntime,

openjdk/barriers/mmtkObjectBarrier.cpp

Lines changed: 0 additions & 207 deletions
This file was deleted.

0 commit comments

Comments
 (0)