delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/11/07/07:58:08

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <418E1BCB.4060808@lapo.it>
Date: Sun, 07 Nov 2004 13:57:47 +0100
From: Lapo Luchini <lapo AT lapo DOT it>
User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103)
MIME-Version: 1.0
To: "[ML] CygWin" <cygwin AT cygwin DOT com>
Subject: Re: JNI call crashes the JVM
References: <20041107045937 DOT 39823 DOT qmail AT web90003 DOT mail DOT scd DOT yahoo DOT com> <20041107052344 DOT GB11307 AT trixie DOT casa DOT cgf DOT cx>
In-Reply-To: <20041107052344.GB11307@trixie.casa.cgf.cx>
X-Enigmail-Version: 0.86.1.0
X-Enigmail-Supports: pgp-inline, pgp-mime

-----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 AT lapo DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019