-
-
Save christianwimmer/a3f7296206e2e6d6d8f134ac02382e38 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static ByteBuffer plotAsSVGInNewIsolate(String function, double xmin, double xmax) { | |
/* Create a new isolate for the function evaluation and rendering. */ | |
IsolateThread renderingContext = Isolates.createIsolate(CreateIsolateParameters.getDefault()); | |
/* Render the function in the new isolate. */ | |
... | |
/* Tear down the isolate, freeing all the temporary objects. */ | |
Isolates.tearDownIsolate(renderingContext); | |
return result; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment