Skip to content

Commit

Permalink
Save registers for conservative scanning (#159)
Browse files Browse the repository at this point in the history
Adding context field to `mmtk__jl_tls_states_t` to reflect the changes
in mmtk/julia#61.
  • Loading branch information
udesou authored Jul 12, 2024
1 parent cdc68ee commit b4565f0
Show file tree
Hide file tree
Showing 3 changed files with 467 additions and 5 deletions.
3 changes: 3 additions & 0 deletions julia/mmtk_julia_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include <setjmp.h>
#include <stdint.h>
#include <pthread.h>
#include <ucontext.h>
#include "mmtkMutator.h"

typedef __SIZE_TYPE__ size_t;
Expand Down Expand Up @@ -438,6 +439,8 @@ typedef struct mmtk__jl_tls_states_t {
MMTkMutatorContext mmtk_mutator;
size_t malloc_sz_since_last_poll;

ucontext_t ctx_at_the_time_gc_started;

// JULIA_DEBUG_SLEEPWAKE(
// uint64_t uv_run_enter;
// uint64_t uv_run_leave;
Expand Down
2 changes: 1 addition & 1 deletion mmtk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ edition = "2018"
[package.metadata.julia]
# 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.
julia_repo = "https://github.com/mmtk/julia.git"
julia_version = "084d8a08f0cfc2b1d7acae2e000c165e8b11de5b"
julia_version = "045bf87050653aa4ae996d3cdc052b1f3fcad7e6"

[lib]
crate-type = ["cdylib"]
Expand Down
Loading

0 comments on commit b4565f0

Please sign in to comment.