jni related
Hello All, I am getting the following error stack while using the function JNI_CreateJavaVM. I am using jdk1.2.2 of balckdown on RHL 7.1 Any ideas why this segmentation violation is there Thanks and regards Amol SIGSEGV 11* segmentation violation si_signo [11]: SIGSEGV 11* segmentation violation si_errno [0]: Success si_code [1]: SEGV_MAPERR [addr: 0x0] stackpointer=0xbfffcbe8 Full thread dump Classic VM (JDK-1.2.2_007, native threads): "Finalizer" (TID:0x41eea320, sys_thread_t:0x80fefb8, state:CW, native ID:0xc04) prio=8 at java.lang.Object.wait(Native Method) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:112) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:127) at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:174) "Reference Handler" (TID:0x41eea3b0, sys_thread_t:0x80f89d8, state:CW, native ID:0x803) prio=10 at java.lang.Object.wait(Native Method) at java.lang.Object.wait(Object.java:424) at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:114) "SIGQUIT handler" (TID:0x41eea3e0, sys_thread_t:0x80f9590, state:R, native ID:0x402) prio=5 "main" (TID:0x41eea1e0, sys_thread_t:0x807e010, state:R, native ID:0x400) prio=5 Monitor Cache Dump: java.lang.ref.ReferenceQueue$Lock@41EEA338/41F20028: Waiting to be notified: "Finalizer" (0x80fef98) java.lang.ref.Reference$Lock@41EEA3C0/41F1FB20: Waiting to be notified: "Reference Handler" (0x80f89b8) Registered Monitor Dump: utf8 hash table: JNI pinning lock: JNI global reference lock: BinClass lock: Class linking lock: System class loader lock: Code rewrite lock: Heap lock: Monitor cache lock: owner "main" (0x807dff0) 1 entry Thread queue lock: owner "main" (0x807dff0) 1 entry Monitor registry: owner "main" (0x807dff0) 1 entry -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Why do threads take so long to wake up underlinux
I've been doing some benchmarks on my machine (a dual 733 running redhat
7.2)
and there seems to be a 20 millisecond penalty for doing a sleep or a wait.
Here
is code that illustrates it:
try {
for (int i = 0; i < 30; i++) {
long start = System.currentTimeMillis();
Thread.currentThread().sleep(i);
long end = System.currentTimeMillis();
System.out.println("total time = " + (end - start) + " for
sleep(" + i + ")");
}
} catch (Exception ex) {}
The output i get is
total time = 2 for sleep(0)
total time = 21 for sleep(1)
total time = 20 for sleep(2)
total time = 16 for sleep(3)
total time = 23 for sleep(4)
total time = 19 for sleep(5)
total time = 20 for sleep(6)
total time = 19 for sleep(7)
total time = 20 for sleep(8)
total time = 20 for sleep(9)
total time = 20 for sleep(10)
total time = 29 for sleep(11)
total time = 29 for sleep(12)
total time = 29 for sleep(13)
total time = 29 for sleep(14)
total time = 29 for sleep(15)
total time = 29 for sleep(16)
total time = 26 for sleep(17)
total time = 33 for sleep(18)
total time = 29 for sleep(19)
total time = 29 for sleep(20)
total time = 39 for sleep(21)
total time = 39 for sleep(22)
total time = 39 for sleep(23)
total time = 39 for sleep(24)
total time = 40 for sleep(25)
total time = 39 for sleep(26)
total time = 39 for sleep(27)
total time = 39 for sleep(28)
total time = 39 for sleep(29)
This is pretty much consistent on all jvms that i've tried blackdown, sun
(1.3.x and 1.4) and IBM
and would seem to therefore be an OS issue. Can anyone provide me with more
info on this and is
there a workaround?
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Why do threads take so long to wake up underlinux
On Wed, Feb 06, 2002 at 03:54:45PM -0500, Martin, Stephen wrote:
> I've been doing some benchmarks on my machine (a dual 733 running redhat
> 7.2)
> and there seems to be a 20 millisecond penalty for doing a sleep or a wait.
> Here
> This is pretty much consistent on all jvms that i've tried blackdown, sun
> (1.3.x and 1.4) and IBM
> and would seem to therefore be an OS issue. Can anyone provide me with more
> info on this and is
> there a workaround?
Limit of the linux scheduler - rebuild your kernel with HZ=1000
asm/param.h - look for
#define HZ 100
--
.''`. Which fundamental human right do you want to give up today?
: :' : Debian GNU/Linux maintainer - www.debian.{org,cz}
`. `' Zdenek Kabelac kabi@{debian.org, users.sf.net, fi.muni.cz}
`- When in doubt, just blame the Euro. :)
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Swing/AWT on ARM
Hi everyone, I've asked the Familiar people about this to no avail, maybe someone here (Juergen?) can help. Basically, I can get the VM to do basic text-based apps (compiled on 1.3.1sdk on linux/i386), but can't get even a simple AWT or Swing app to run in the same manner. I imagine I have some libraries missing or not in my path or something. Any Suggestions? Here's the stacktrace: Exception in thread "main" java.lang.ClassFormatError: MyApp (Illegal constant pool type) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:486) at java.security.SecureClassLoader.defineClass (SecureClassLoader.java:111) at java.net.URLClassLoader.defineClass (URLClassLoader.java:248) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:297) at sun.misc.Launcher$AppClassLoader.loadClass (Launcher.java:286) at java.lang.ClassLoader.loadClass(ClassLoader.java:253) at java.lang.ClassLoader.loadClassInternal (ClassLoader.java:313) I'm running this on an iPAQ (StrongARM) distro from blackdown. I've installed the blackdown 1.3.1 distro with the 'additional-ipaq- stuff' package, but I'm uncertain how I'm suppsed to install them -- I've tried linking them in to what I believe are the correct directories, but I can't get Swing/AWT apps to work. I'll send the java source for this example if need be. Any suggestions appreciated. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Swing/AWT on ARM
> Basically, I can get the VM to do basic text-based apps (compiled on > 1.3.1sdk on linux/i386), but can't get even a simple AWT or Swing app > to run in the same manner. I can run a Swing based application at least. It's `IPAQDemo.jar' mentioned in the announce of J2SE for Linux/ARM: http://www.handhelds.org/pipermail/ipaq/2001-June/007221.html I can see Duke dancing on my iPAQ when type `java -jar IPAQDemo.jar'. The demo takes about 75 seconds (!) to start up. Can you see Duke? Kazuyuki Shudo[EMAIL PROTECTED] http://www.shudo.net/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
