Skip to content

Commit

Permalink
Fix added fields' types
Browse files Browse the repository at this point in the history
  • Loading branch information
kpamnany committed Nov 26, 2023
1 parent 0999d36 commit bbecd31
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/gf.c
Original file line number Diff line number Diff line change
Expand Up @@ -2952,21 +2952,21 @@ JL_DLLEXPORT jl_value_t *jl_apply_generic(jl_value_t *F, jl_value_t **args, uint
}

#ifdef JL_DISPATCH_LOG_BOXES
JL_DLLEXPORT uint64_t jl_get_num_dynamic_dispatches(jl_method_t *m)
JL_DLLEXPORT int32_t jl_get_num_dynamic_dispatches(jl_method_t *m)
{
return m->num_dynamic_dispatches;
}
JL_DLLEXPORT uint64_t jl_get_dynamic_dispatch_ns(jl_method_t *m)
JL_DLLEXPORT int64_t jl_get_dynamic_dispatch_ns(jl_method_t *m)
{
return m->dynamic_dispatch_ns;
}
#else
JL_DLLEXPORT uint64_t jl_get_num_dynamic_dispatches(jl_method_t *m)
JL_DLLEXPORT int32_t jl_get_num_dynamic_dispatches(jl_method_t *m)
{
jl_error("not logging");
return 0;
}
JL_DLLEXPORT uint64_t jl_get_dynamic_dispatch_ns(jl_method_t *m)
JL_DLLEXPORT int64_t jl_get_dynamic_dispatch_ns(jl_method_t *m)
{
jl_error("not logging");
return 0;
Expand Down
2 changes: 1 addition & 1 deletion src/jltypes.c
Original file line number Diff line number Diff line change
Expand Up @@ -2663,7 +2663,7 @@ void jl_init_types(void) JL_GC_DISABLED
jl_uint8_type,
jl_uint8_type,
jl_int32_type,
jl_uint64_type),
jl_int64_type),
jl_emptysvec,
0, 1, 10);
//const static uint32_t method_constfields[1] = { 0x03fc065f }; // (1<<0)|(1<<1)|(1<<2)|(1<<3)|(1<<4)|(1<<6)|(1<<9)|(1<<10)|(1<<18)|(1<<19)|(1<<20)|(1<<21)|(1<<22)|(1<<23)|(1<<24)|(1<<25);
Expand Down
4 changes: 2 additions & 2 deletions src/julia.h
Original file line number Diff line number Diff line change
Expand Up @@ -348,8 +348,8 @@ typedef struct _jl_method_t {
// forcing the conclusion to always true.
_jl_purity_overrides_t purity;

uint32_t num_dynamic_dispatches;
uint64_t dynamic_dispatch_ns;
int32_t num_dynamic_dispatches;
int64_t dynamic_dispatch_ns;

// hidden fields:
// lock for modifications to the method
Expand Down

0 comments on commit bbecd31

Please sign in to comment.