Assert everything is compiled in test_zjit (https://github.com/Shopify/zjit/pull/40)

* Assert everything is compiled in test_zjit

* Update a comment on rb_zjit_assert_compiles

Co-authored-by: Maxime Chevalier-Boisvert <maxime.chevalierboisvert@shopify.com>

* Add a comment about assert_compiles

* Actually use pipe_fd

---------

Co-authored-by: Maxime Chevalier-Boisvert <maxime.chevalierboisvert@shopify.com>
This commit is contained in:
Takashi Kokubun 2025-03-07 12:55:47 -08:00
parent d2115562b9
commit 33a052486b
Notes: git 2025-04-18 13:48:20 +00:00
12 changed files with 177 additions and 53 deletions

6
zjit.rb Normal file
View file

@ -0,0 +1,6 @@
module RubyVM::ZJIT
# Assert that any future ZJIT compilation will return a function pointer
def self.assert_compiles
Primitive.rb_zjit_assert_compiles
end
end