This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: JNI call crashes the JVM


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Christopher Faylor wrote:
> I know nothing about JNI but, if you are trying to load the cygwin
> library dynamically, that won't work.  You can't load the DLL in
> this way.  Sorry.

Actualyl the way the JNI works it doesn't permit to load *ANY* DLL that
depends on another DLL, that leads to a crash.

BTW: does Windows even have a gettimeofday()?

If it has it, it is 10ms-bound for sure, anyway.
I would rather use some native method to call RDTSC, then work on the
Java side to interpolate "more precise" time.
Or use it directly, if you only need a monotone counter, regardless of
real time.

Take a look here:
<http://home.lapo.it/cgi-bin/viewcvs.cgi/lapint/it/lapo/util/>
specifically files Makefile, RDTSC.c and RDTSC.java

- --
Lapo Luchini
lapo@lapo.it (PGP & X.509 keys available)
http://www.lapo.it (ICQ UIN: 529796)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iEYEARECAAYFAkGOG8sACgkQaJiCLMjyUvs/cwCeIaqfbOpjJRAa2cGmlpFxF8Km
HkYAn1jjglbXSMkUsjyvJtP05T/flbDk
=uGem
-----END PGP SIGNATURE-----

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]