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

Add a fragment that supports linux native polling using panama #346

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

laeubi
Copy link
Contributor

@laeubi laeubi commented Mar 6, 2023

This is a draft to investigate the possible options to use the Project Panama in Eclipse platform code.

The goal is to wrap the Linux inotify API to watch folders with native hooks but providing graceful degradation in case of resource exhaustion so we need access to the native error codes, and explicitly only watching folders.

Beside that, this is to investigate the usage of Multi-Release JAR Files to adopt to changes between java versions, something that is currently not used (and not yet well supported by the IDE itself) but will become prominent in the future of Java APIs evolving.

So this can also be used to discuss or being used as a starting point for own experiments (e.g. any mac users might try the native mac API as well that can be seen here openjdk/jdk#10140)

This adds native polling support for linux with the inotify API.
@akurtakov
Copy link
Member

Is this still of interest? While I have high hopes for Project Panama I'm not eager to have both jni and panama implementations around.

@laeubi
Copy link
Contributor Author

laeubi commented Mar 6, 2024

@akurtakov I need to rework this to align with final FFM API for Java 21, as there is no JNI implementation for this feature I don't see any risk for overlap.

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