[PATCH] disable monotonic clock if condattr_setclock(CLOCK_MONOTONIC) does not work

Gleb Natapov gleb at cloudius-systems.com
Fri Jan 17 06:34:10 UTC 2014


On Thu, Jan 16, 2014 at 11:55:51PM +0100, Bernd Eckenfels wrote:
> Hello Gleb,
> 
> I think you posted that to the wrong mailinglist (hotspot-gc-dev is
> about memory subsystem and garbage collection only). So you might
> want to submit it to somewhere else (maybe even open a bug?).
> 
Ugh, you are right of course. I am mainly interested in GC so that is
the only list I am subscribed to and I mindlessly sent the patch here.

> Anyway, your patch is interesting, do you know under which
> conditions the EINVAL for the monotonic timer would happen?
> 
Not on normal Linux AFAIK, but I encountered in on OSv
(http://www.osv.io/) which has its own posix emulation layer that
emulates monotonic clock but not yet condattr_setclock(CLOCK_MONOTONIC).
The later will be emulated too eventually, but there is no harm in
fixing JVM.

--
			Gleb.



More information about the hotspot-gc-dev mailing list