Skip to content

Commit b4565f0

Browse files
authored
Save registers for conservative scanning (#159)
Adding context field to `mmtk__jl_tls_states_t` to reflect the changes in mmtk/julia#61.
1 parent cdc68ee commit b4565f0

File tree

3 files changed

+467
-5
lines changed

3 files changed

+467
-5
lines changed

julia/mmtk_julia_types.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#include <setjmp.h>
55
#include <stdint.h>
66
#include <pthread.h>
7+
#include <ucontext.h>
78
#include "mmtkMutator.h"
89

910
typedef __SIZE_TYPE__ size_t;
@@ -438,6 +439,8 @@ typedef struct mmtk__jl_tls_states_t {
438439
MMTkMutatorContext mmtk_mutator;
439440
size_t malloc_sz_since_last_poll;
440441

442+
ucontext_t ctx_at_the_time_gc_started;
443+
441444
// JULIA_DEBUG_SLEEPWAKE(
442445
// uint64_t uv_run_enter;
443446
// uint64_t uv_run_leave;

mmtk/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ edition = "2018"
1010
[package.metadata.julia]
1111
# Our CI matches the following line and extract mmtk/julia. If this line is updated, please check ci yaml files and make sure it works.
1212
julia_repo = "https://github.com/mmtk/julia.git"
13-
julia_version = "084d8a08f0cfc2b1d7acae2e000c165e8b11de5b"
13+
julia_version = "045bf87050653aa4ae996d3cdc052b1f3fcad7e6"
1414

1515
[lib]
1616
crate-type = ["cdylib"]

0 commit comments

Comments
 (0)