Skip to content

Commit 4a17579

Browse files
committed
Fix test in make-Profile
1 parent 8bb0895 commit 4a17579

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/mmtk-gc.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,16 @@ JL_DLLEXPORT void jl_gc_set_cb_notify_external_free(jl_gc_cb_notify_external_fre
3232
JL_DLLEXPORT void jl_gc_set_cb_notify_gc_pressure(jl_gc_cb_notify_gc_pressure_t cb, int enable)
3333
{
3434
}
35+
36+
// mutex for page profile
37+
uv_mutex_t page_profile_lock;
38+
3539
JL_DLLEXPORT void jl_gc_take_page_profile(ios_t *stream)
3640
{
41+
uv_mutex_lock(&page_profile_lock);
42+
const char *str = "Page profiler in unsupported in MMTk.";
43+
ios_write(stream, str, strlen(str));
44+
uv_mutex_unlock(&page_profile_lock);
3745
}
3846

3947
JL_DLLEXPORT double jl_gc_page_utilization_stats[JL_GC_N_MAX_POOLS];

0 commit comments

Comments
 (0)