Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
maleadt committed Sep 17, 2024
1 parent 1a01e08 commit 7094ea4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
13 changes: 1 addition & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
llvm_args: ['']
include:
# starting with Julia 1.10, we can enable opaque pointers
# from Juila 1.12 on, this is the default.
- version: '1.10'
os: 'ubuntu-latest'
arch: 'x64'
Expand All @@ -48,18 +49,6 @@ jobs:
os: 'windows-latest'
arch: 'x64'
llvm_args: '--opaque-pointers'
#- version: 'nightly'
# os: 'ubuntu-latest'
# arch: 'x64'
# llvm_args: '--opaque-pointers'
#- version: 'nightly'
# os: 'macOS-latest'
# arch: 'x64'
# llvm_args: '--opaque-pointers'
#- version: 'nightly'
# os: 'windows-latest'
# arch: 'x64'
# llvm_args: '--opaque-pointers'
steps:
- uses: actions/checkout@v4

Expand Down
12 changes: 12 additions & 0 deletions src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,12 @@ end
# XXX: it's not allowed to switch tasks while under this lock, can we guarantee that?
# its probably easier to start using our own LLVM context when that's possible.
macro locked(ex)
# XXX: how does locking work after JuliaLang/julia#54816?
# do we have to call engine_reserve/engine_reject?
if VERSION >= v"1.12.0-DEV.769"
return esc(ex)
end

def = splitdef(ex)
def[:body] = quote
ccall(:jl_typeinf_lock_begin, Cvoid, ())
Expand All @@ -109,6 +115,12 @@ end

# HACK: temporarily unlock again to perform a task switch
macro unlocked(ex)
# XXX: how does locking work after JuliaLang/julia#54816?
# do we have to call engine_reserve/engine_reject?
if VERSION >= v"1.12.0-DEV.769"
return esc(ex)
end

def = splitdef(ex)
def[:body] = quote
ccall(:jl_typeinf_lock_end, Cvoid, ())
Expand Down

0 comments on commit 7094ea4

Please sign in to comment.