Skip to content
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

Remove compilation of LibN.java #1319

Merged
merged 3 commits into from
Sep 3, 2023

Conversation

pjonsson
Copy link
Contributor

Use an Arena from the FFI preview in Java 20 to track scopes of shared libraries.

This speeds up 07-simulation-base from 1m 8s to 50s.

@pjonsson pjonsson force-pushed the remove-javac-dependency branch from 15230b6 to 9d38cd5 Compare August 31, 2023 19:50
Add added/removed methods to the MoteType
interface, and call that from the simulation
when the motetype is added/removed.

Inside ContikiMoteType, replace the current
class-loader-tweaking with an arena that
is closed when the motetype is removed from
the simulation. This will close the shared
library as well.

This reduces the runtime for 07-simulation-base
from 1m 8s to 50s.
After switching ContikiMoteType to use
an Arena, this is no longer required.
This class no longer needs to be exposed
to the world.
@pjonsson pjonsson force-pushed the remove-javac-dependency branch from fc8b362 to 319145c Compare September 3, 2023 21:25
@nfi nfi merged commit 4b2834d into contiki-ng:master Sep 3, 2023
2 checks passed
@pjonsson pjonsson deleted the remove-javac-dependency branch September 3, 2023 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants