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

FELIX-6163: do not use System.currentTimeMillis() to check timeouts #67

Merged
merged 1 commit into from
Dec 15, 2020

Conversation

karlpauls
Copy link
Contributor

No description provided.

@karlpauls karlpauls merged commit 945008d into master Dec 15, 2020
@@ -72,14 +74,14 @@ public synchronized void setMessage(Object msg)
**/
public synchronized boolean await(long timeout) throws InterruptedException
{
long start = System.currentTimeMillis();
long start = TimeUnit.NANOSECONDS.toMillis(System.nanoTime());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could convert the timeout input to nanoseconds instead of converting system.nanoTime to millis possibly multiple times.

@bjhargrave
Copy link

osgi/osgi@cf7d482 is the fix in the OSGi source repo.

@cziegeler cziegeler deleted the issues/FELIX-6163 branch September 24, 2021 05:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants