-
-
Notifications
You must be signed in to change notification settings - Fork 371
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consolidate jvm subprocess and inprocess functions #4456
base: main
Are you sure you want to change the base?
Consolidate jvm subprocess and inprocess functions #4456
Conversation
…assLoader, runClassLoader}. Remove JavaModule.launcher
…github.com:sake92/mill into consolidate-jvm-subprocess-and-inprocess-functions
The naming is pulled a bit in two directions
TBH I'm not sure which one is better. @lefou @lolgab not sure if you guys have any opinions here? |
This is to let you select the parent classloader; at the minimum it lets you decide whether or not to include the current Mill classloader on the child classpath, or have the child classpath entirely isolated. So we probably need to keep it as necessary complexity in the API |
That's right. For now can just leave them in place |
Seems that |
Maybe we can try closing it all the time and see if any tests break? I don't understand why we wouldn't close it either haha |
The name |
…github.com:sake92/mill into consolidate-jvm-subprocess-and-inprocess-functions
Good point. |
…assLoader] (parent cl)
…github.com:sake92/mill into consolidate-jvm-subprocess-and-inprocess-functions
Some minor questions/suggestions:
spawnClassloader
is more flexible, you can pass your own classloader rather that usegetClass.getClassLoader
, this is ok I guess?spawnClassLoader
ascreateClassLoader
callClassloader
aswithClassloader
(common loan pattern name)getMainMethod
is not public sorunLocal
can't be removed.. so exposegetMainMethod
or leaverunLocal
as is?I have to wait for new version of Mill with these changes included, and then update them?
closeClassLoaderWhenDone
is needed, I don't understand why it is left unclosed in few places.Closes #3772