Skip to content

Commit 89775c0

Browse files
committed
[GR-44830] Only catch RaiseException for ReferenceProcessingService
1 parent 9976943 commit 89775c0

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/main/java/org/truffleruby/core/ReferenceProcessingService.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
import org.truffleruby.language.control.RaiseException;
2121

2222
import com.oracle.truffle.api.CompilerDirectives.TruffleBoundary;
23-
import org.truffleruby.language.control.TerminationException;
2423

2524
public abstract class ReferenceProcessingService<R extends ReferenceProcessingService.PhantomProcessingReference<R, T>, T> {
2625

@@ -168,13 +167,6 @@ protected void runCatchingErrors(RubyContext context, RubyLanguage language,
168167
action.accept(context, language, reference);
169168
} catch (RaiseException e) {
170169
context.getCoreExceptions().showExceptionIfDebug(e.getException());
171-
} catch (TerminationException e) {
172-
throw e;
173-
} catch (Exception e) {
174-
// Do nothing, the finalizer thread must continue to process objects.
175-
if (context.getCoreLibrary().getDebug() == Boolean.TRUE) {
176-
e.printStackTrace();
177-
}
178170
}
179171
}
180172

0 commit comments

Comments
 (0)