Multicore/use addrmap hash table for marshaling#1
Open
shakthimaan wants to merge 33 commits intotrunkfrom
Open
Multicore/use addrmap hash table for marshaling#1shakthimaan wants to merge 33 commits intotrunkfrom
shakthimaan wants to merge 33 commits intotrunkfrom
Conversation
shakthimaan
commented
Jan 27, 2020
runtime/extern.c
Outdated
| uintnat sz_32, sz_64; | ||
| char * size_header; | ||
| char const * ident = Custom_ops_val(v)->identifier; | ||
| char * ident = Custom_ops_val(v)->identifier; |
Owner
Author
There was a problem hiding this comment.
Check use of const from trunk.
shakthimaan
commented
Jan 27, 2020
runtime/caml/misc.h
Outdated
| #endif | ||
|
|
||
| #ifndef CAML_AVOID_CONFLICTS | ||
| #define Assert CAMLassert |
Owner
Author
There was a problem hiding this comment.
Change all usage of Assert to CAMLassert.
shakthimaan
commented
Jan 27, 2020
| caml_fatal_error( | ||
| caml_fatal_error_arg( | ||
| "output_value: incorrect fixed sizes specified by %s", | ||
| ident); |
Owner
Author
There was a problem hiding this comment.
Use caml_fatal_error.
shakthimaan
commented
Jan 27, 2020
| extern_ptr[0] = code; | ||
| store16(extern_ptr + 1, (int) val); | ||
| store16(extern_ptr + 1, val); | ||
| extern_ptr += 3; |
Owner
Author
There was a problem hiding this comment.
Re-add (int) type cast.
shakthimaan
commented
Jan 27, 2020
| } else | ||
| writecode32(CODE_INT32, n); | ||
| goto next_item; | ||
| } |
Owner
Author
There was a problem hiding this comment.
Re-add Is_in_value_area and caml_extern_allow_out_of_heap.
shakthimaan
commented
Jan 27, 2020
runtime/extern.c
Outdated
| /* Check if already seen */ | ||
| if (Color_hd(hd) == Caml_blue) { | ||
| uintnat d = obj_counter - (uintnat) Field(v, 0); | ||
| if (extern_flags & NO_SHARING) { |
Owner
Author
There was a problem hiding this comment.
Why NO_SHARING? Only else case should always happen.
shakthimaan
commented
Jan 27, 2020
runtime/extern.c
Outdated
| case Abstract_tag: | ||
| extern_invalid_argument("output_value: abstract value (Abstract)"); | ||
| break; | ||
| case Closure_tag: |
shakthimaan
commented
Jan 27, 2020
runtime/extern.c
Outdated
| sp++; | ||
| if (sp >= extern_stack_limit) sp = extern_resize_stack(sp); | ||
| sp->v = &Field(v,1); | ||
| sp->v = Op_val(v) + 1; |
shakthimaan
commented
Jan 27, 2020
| v = field0; | ||
| continue; | ||
| } | ||
| } |
Owner
Author
There was a problem hiding this comment.
This is only an indentation fix.
shakthimaan
commented
Jan 27, 2020
| @@ -750,7 +668,30 @@ CAMLprim value caml_output_value_to_bytes(value v, value flags) | |||
|
|
|||
| CAMLprim value caml_output_value_to_string(value v, value flags) | |||
| { | |||
Owner
Author
There was a problem hiding this comment.
Re-use caml_output_value_to_bytes.
shakthimaan
commented
Jan 27, 2020
runtime/extern.c
Outdated
| res += header_len; | ||
| for (blk = extern_output_first; blk != NULL; blk = blk->next) { | ||
| intnat n = blk->end - blk->data; | ||
| int n = blk->end - blk->data; |
Owner
Author
There was a problem hiding this comment.
Type should be intnat.
shakthimaan
commented
Jan 27, 2020
runtime/misc.c
Outdated
| abort(); | ||
| } | ||
|
|
||
| CAMLexport void caml_fatal_error_arg (const char *fmt, const char *arg) |
shakthimaan
pushed a commit
that referenced
this pull request
Sep 22, 2020
This job did actually do two different things: 1. Check that the compiler can be built without the world.opt target 2. Run sanitizers This commit thus splits the extra-checks job into two separate ones that are defined as Jenkins pipeline jobs named sanitizers and step-by-step-build.
shakthimaan
pushed a commit
that referenced
this pull request
Sep 22, 2020
shakthimaan
pushed a commit
that referenced
this pull request
Sep 22, 2020
shakthimaan
pushed a commit
that referenced
this pull request
Sep 22, 2020
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.