mirror of
https://github.com/wassname/ray.git
synced 2026-07-01 22:40:06 +08:00
[Java] Avoid unnecessary memory copy and addd a benchmark (#4611)
This commit is contained in:
@@ -36,6 +36,7 @@ public final class Ray extends RayCall {
|
||||
public static synchronized void init(RayRuntimeFactory factory) {
|
||||
if (runtime == null) {
|
||||
runtime = factory.createRayRuntime();
|
||||
Runtime.getRuntime().addShutdownHook(new Thread(Ray::shutdown));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user