8040140: System.nanoTime() is slow and non-monotonic on OS X

Reviewed-by: sspitsyn, shade, dholmes, acorn
This commit is contained in:
Staffan Larsen 2014-04-25 07:40:33 +02:00
parent a162ea836e
commit 0ef4fb7100
5 changed files with 76 additions and 61 deletions

View file

@ -48,6 +48,9 @@
#ifdef TARGET_OS_FAMILY_bsd
# include "jvm_bsd.h"
# include <setjmp.h>
# ifdef __APPLE__
# include <mach/mach_time.h>
# endif
#endif
class AgentLibrary;