Skip to content

Commit 4271b46

Browse files
committed
More code cleanup.
1 parent f3d19d7 commit 4271b46

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/main/java/org/truffleruby/extra/ffi/Pointer.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
import org.truffleruby.RubyContext;
1818
import org.truffleruby.RubyLanguage;
1919
import org.truffleruby.SuppressFBWarnings;
20-
import org.truffleruby.core.FinalizationService;
2120

2221
import com.oracle.truffle.api.CompilerDirectives;
2322
import com.oracle.truffle.api.CompilerDirectives.TruffleBoundary;
@@ -365,7 +364,7 @@ private void enableAutoreleaseUnsynchronized(RubyLanguage language) {
365364
}
366365

367366
@TruffleBoundary
368-
public synchronized void disableAutorelease(FinalizationService finalizationService) {
367+
public synchronized void disableAutorelease() {
369368
if (cleanable == null) {
370369
return;
371370
}

src/main/java/org/truffleruby/extra/ffi/PointerNodes.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ protected boolean enableAutorelease(RubyPointer pointer, boolean autorelease) {
204204

205205
@Specialization(guards = "!autorelease")
206206
protected boolean disableAutorelease(RubyPointer pointer, boolean autorelease) {
207-
pointer.pointer.disableAutorelease(getContext().getFinalizationService());
207+
pointer.pointer.disableAutorelease();
208208
return autorelease;
209209
}
210210

0 commit comments

Comments
 (0)