You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 9c6caef
Browse filesBrowse the repository at this point in the historyBrowse files
LlamaLoader: skip the nested initialize() that JNI_OnLoad triggers
CI (Smoke test all-backends fat jar, Linux): RpcServer never reported listening
within 60 s. RpcServer is the first entry point that loads the library before
LlamaModel. Loading runs JNI_OnLoad, whose GetFieldID on LlamaModel initializes
that class; its static block called LlamaLoader.initialize() again on the loading
thread, and the reentrant lock let a second complete load run: it cleared the
temp files and, with a multi-backend jar, extracted and probed every GPU backend
again (CUDA, ROCm, SYCL are hundreds of MB) over the library being loaded.
- LlamaLoader.runOnceOnThisThread: the nested call returns at once; later calls
and other threads still run the load (BackendManifestLoadTest relies on that).
Three unit tests pin nesting, re-running and a failed load staying retryable.
- smoke-rpc-fatjar.sh waits up to 300 s like the NativeServer smoke and fails when
the backend is selected more than once. Reproduced locally with a hand-built
multi-backend jar: two selections before, one after; the smoke passes on it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QSXAwbXqx9u5xsMArMvgT8
0 commit comments