RFR: 8297041: Remove the last remnants of sjavac
Magnus Ihse Bursie
ihse at openjdk.org
Wed Nov 16 16:44:16 UTC 2022
On Wed, 16 Nov 2022 14:06:16 GMT, Erik Joelsson <erikj at openjdk.org> wrote:
>> The sjavac ("smart javac") was an ambitious project. It should parallelize java compilation, create a background daemon process that kept the JVM "hot" with the JITted javac code, define a public api so only noticeable changes in a class caused further dependency compilations, etc etc.
>>
>> Some of this never came to fruition. Other were implemented differently, as the `depend` plugin. The only thing we're currently using (and have been for the last few years) is the "server" functionality, that is, the ability to keep a single JVM process alive, and reuse the JITted code.
>>
>> This code does not belong in the jdk.compiler module. It is a buildtool, pure and simple. Let's move it to it's proper place.
>
> Would it be worth keeping the relevant tests around in a separate test root for buildtools, given that this buildtool is rather big and complex? Or is the replacement so imminent that it's not worth the effort?
@erikj79 I'd also like to add that, at this point, the buildtool is not very complex. Right now it just listens to a port, and kicks off a javac compilation for each incoming call. It looks more complex since we've come here the long way around from a more complicated tool, and I did not spend too much time simplifying the code.
-------------
PR: https://git.openjdk.org/jdk/pull/11185
More information about the ide-support-dev
mailing list