Skip to content

Merge with mmtk/mmtk-openjdk@master #234

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Aug 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -xe
unset JAVA_TOOL_OPTIONS

export MMTK_EXTREME_ASSERTIONS=0
export GLOBAL_ALLOC_BIT=1
export VO_BIT=1
. $(dirname "$0")/ci-build.sh

cd $OPENJDK_PATH
Expand Down
2 changes: 1 addition & 1 deletion .github/scripts/ci-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ cd $cur
cd $cur
./ci-test-assertions.sh
cd $cur
./ci-test-global-alloc-bit.sh
./ci-test-vo-bit.sh
cd $cur
./ci-test-malloc-mark-sweep.sh
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ jobs:
run: |
./.github/scripts/ci-build.sh
./.github/scripts/ci-test-only-normal.sh
- name: DaCapo Tests with global allocation bit
run: ./.github/scripts/ci-test-global-alloc-bit.sh
- name: DaCapo Tests with valid object bit (VO bit)
run: ./.github/scripts/ci-test-vo-bit.sh
- name: DaCapo Tests with malloc Mark-Sweep
run: ./.github/scripts/ci-test-malloc-mark-sweep.sh

Expand Down
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,12 +197,14 @@ building OpenJDK, we can change its location to be in the object's header:
$ MARK_IN_HEADER=1 make CONF=linux-x86_64-normal-server-$DEBUG_LEVEL THIRD_PARTY_HEAP=$PWD/../mmtk-openjdk/openjdk
```

### Alloc bit
To support the `global_alloc_bit` feature in mmtk-core, you can set the environment variable `GLOBAL_ALLOC_BIT=1` when
building OpenJDK. This will set the feature for mmtk-core, as well as compiling the fastpath for the alloc bit.
### Valid object bit

To support the `vo_bit` (valid object bit) feature in mmtk-core, you can set the
environment variable `VO_BIT=1` when building OpenJDK. This will set the feature
for mmtk-core, as well as compiling the fastpath for the VO bit.

```console
$ GLOBAL_ALLOC_BIT=1 make CONF=linux-x86_64-normal-server-$DEBUG_LEVEL THIRD_PARTY_HEAP=$PWD/../mmtk-openjdk/openjdk
$ VO_BIT=1 make CONF=linux-x86_64-normal-server-$DEBUG_LEVEL THIRD_PARTY_HEAP=$PWD/../mmtk-openjdk/openjdk
```

## Test
Expand Down
Loading