pgjdbc/pgjdbc GitHub issues and pull requests (mirror)
help / color / mirror / Atom feed[pgjdbc/pgjdbc] PR #3962: fix: catch SecurityException from setContextClassLoader on ForkJoinPool workers
2+ messages / 1 participants
[nested] [flat]
* [pgjdbc/pgjdbc] PR #3962: fix: catch SecurityException from setContextClassLoader on ForkJoinPool workers
@ 2026-03-14 06:45 "vlsi (@vlsi)" <[email protected]>
0 siblings, 0 replies; 2+ messages in thread
From: vlsi (@vlsi) @ 2026-03-14 06:45 UTC (permalink / raw)
To: pgjdbc/pgjdbc <[email protected]>
`InnocuousForkJoinWorkerThread` (used by `ForkJoinPool.commonPool()` under certain security configurations) throws `SecurityException` when `setContextClassLoader` is called. This crashed the cleanup thread, disabling phantom-reference-based leak detection for the rest of the JVM lifetime.
Wrap the call in try-catch since it is best-effort: `ForkJoinPool` does not inherit `contextClassLoader` from the submitting thread, but custom thread factories might, so we still attempt to nullify it.
Fixes https://github.com/pgjdbc/pgjdbc/issues/3953
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: [pgjdbc/pgjdbc] PR #3962: fix: catch SecurityException from setContextClassLoader on ForkJoinPool workers
@ 2026-03-14 09:51 "vlsi (@vlsi)" <[email protected]>
0 siblings, 0 replies; 2+ messages in thread
From: vlsi (@vlsi) @ 2026-03-14 09:51 UTC (permalink / raw)
To: pgjdbc/pgjdbc <[email protected]>
I couldn't make the test run with the SecurityManager as Gradle overrides it.
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2026-03-14 09:51 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2026-03-14 06:45 [pgjdbc/pgjdbc] PR #3962: fix: catch SecurityException from setContextClassLoader on ForkJoinPool workers "vlsi (@vlsi)" <[email protected]>
2026-03-14 09:51 Re: [pgjdbc/pgjdbc] PR #3962: fix: catch SecurityException from setContextClassLoader on ForkJoinPool workers "vlsi (@vlsi)" <[email protected]>
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox