Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Miscellaneous JIT fixes #4930

Merged
merged 7 commits into from
May 11, 2024
Merged

Miscellaneous JIT fixes #4930

merged 7 commits into from
May 11, 2024

Conversation

dolio
Copy link
Contributor

@dolio dolio commented May 10, 2024

These are various fixes to jit stuff that I found by doing a search/replace of the transcripts to use run.native. There are a couple I haven't fixed, because I'm not sure how yet (comparing thread pointers and lack of sized block buffering in racket).

The following problems are fixed:

  • Some problems with printing exceptions from things like bug
  • getSomeBytes was giving a result padded by null bytes in cases where the full requested amount wasn't available
  • Booleans weren't handled by reflection.
  • File opening wasn't working in all cases; tweaked the implementation
  • directoryContents was broken in a couple ways
  • Command line arguments weren't being sent during run.native
  • systemTimeZone wasn't implemented

I didn't include any new tests, because these would all be caught by running transcripts with the jit runtime. We just don't at the moment.

dolio added 7 commits May 9, 2024 10:26
It pre-allocates a buffer of the maximal size, but wasn't truncating
after the read completes. This results in a unison bytes with extra null
bytes, which could even follow on to text with extra nulls.
- Reify/reflect booleans properly
- Use exn:bug for errors during translation
Some of the modes weren't working. This switches the racket
implementation of file opening instead of the r6rs one.
@dolio dolio requested a review from aryairani May 10, 2024 19:39
@aryairani aryairani merged commit 220b3d5 into trunk May 11, 2024
18 of 19 checks passed
@aryairani aryairani deleted the fix/jit-misc branch May 11, 2024 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants