Skip to content

Commit 80ccba5

Browse files
lukasstadlerfangerer
authored andcommitted
style fixes
1 parent 308b120 commit 80ccba5

File tree

1 file changed

+2
-2
lines changed
  • graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/cext/structs

1 file changed

+2
-2
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/cext/structs/CStructAccess.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,14 +121,14 @@ static Object allocLong(long size, @SuppressWarnings("unused") boolean allocateP
121121

122122
@Specialization(guards = {"!allocatePyMem", "!nativeAccess()"})
123123
static Object allocLong(long size, @SuppressWarnings("unused") boolean allocatePyMem,
124-
@Cached PCallCapiFunction call) {
124+
@Shared @Cached PCallCapiFunction call) {
125125
assert size >= 0;
126126
return call.call(NativeCAPISymbol.FUN_CALLOC, size);
127127
}
128128

129129
@Specialization(guards = "allocatePyMem")
130130
static Object allocLongPyMem(long size, @SuppressWarnings("unused") boolean allocatePyMem,
131-
@Cached PCallCapiFunction call) {
131+
@Shared @Cached PCallCapiFunction call) {
132132
assert size >= 0;
133133
return call.call(NativeCAPISymbol.FUN_PYMEM_ALLOC, size, 1);
134134
}

0 commit comments

Comments
 (0)