Skip to content

Commit 8a0e0a4

Browse files
committed
1 parent 1a01e08 commit 8a0e0a4

File tree

2 files changed

+11
-12
lines changed

2 files changed

+11
-12
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
llvm_args: ['']
2525
include:
2626
# starting with Julia 1.10, we can enable opaque pointers
27+
# from Juila 1.12 on, this is the default.
2728
- version: '1.10'
2829
os: 'ubuntu-latest'
2930
arch: 'x64'
@@ -48,18 +49,6 @@ jobs:
4849
os: 'windows-latest'
4950
arch: 'x64'
5051
llvm_args: '--opaque-pointers'
51-
#- version: 'nightly'
52-
# os: 'ubuntu-latest'
53-
# arch: 'x64'
54-
# llvm_args: '--opaque-pointers'
55-
#- version: 'nightly'
56-
# os: 'macOS-latest'
57-
# arch: 'x64'
58-
# llvm_args: '--opaque-pointers'
59-
#- version: 'nightly'
60-
# os: 'windows-latest'
61-
# arch: 'x64'
62-
# llvm_args: '--opaque-pointers'
6352
steps:
6453
- uses: actions/checkout@v4
6554

src/utils.jl

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,12 @@ end
9595
# XXX: it's not allowed to switch tasks while under this lock, can we guarantee that?
9696
# its probably easier to start using our own LLVM context when that's possible.
9797
macro locked(ex)
98+
if VERSION >= v"1.12.0-DEV.769"
99+
# no need to handle locking; it's taken care of by the engine
100+
# as long as we use a correct cache owner token.
101+
return esc(ex)
102+
end
103+
98104
def = splitdef(ex)
99105
def[:body] = quote
100106
ccall(:jl_typeinf_lock_begin, Cvoid, ())
@@ -109,6 +115,10 @@ end
109115

110116
# HACK: temporarily unlock again to perform a task switch
111117
macro unlocked(ex)
118+
if VERSION >= v"1.12.0-DEV.769"
119+
return esc(ex)
120+
end
121+
112122
def = splitdef(ex)
113123
def[:body] = quote
114124
ccall(:jl_typeinf_lock_end, Cvoid, ())

0 commit comments

Comments
 (0)