native jdk-15.2 on FreeBSD/amd64?
Clarence Chu
clcchu at hotmail.com
Fri Apr 22 05:44:07 PDT 2005
>There're some reported problems with EMT64 support which fixed
>in Sun closed distribution, but not made available yet to open source
>world.
>
could the em64t problem be fixed as follows?
---- jdk15.patches.orig Thu Jan 20 04:47:28 2005
+++ jdk15.patches Fri Apr 22 18:00:54 2005
@@ -13916,7 +13916,7 @@
diff -N hotspot/src/os_cpu/bsd_amd64/vm/prefetch_bsd_amd64.inline.hpp
--- hotspot/src/os_cpu/bsd_amd64/vm/prefetch_bsd_amd64.inline.hpp 1 Jan
170 00:00:00 -0000
+++ hotspot/src/os_cpu/bsd_amd64/vm/prefetch_bsd_amd64.inline.hpp 23
Dec
004 19:35:20 -0000 1.2
-@@ -0,0 +1,21 @@
+@@ -0,0 +1,24 @@
+/*
+ * $Id: prefetch_bsd_amd64.inline.hpp,v 1.2 2004/12/23 19:35:20 phantom Exp
$
+ */
@@ -13935,8 +13935,11 @@
+ // Force prefetchw. The gcc builtin produces prefetcht0 or prefetchw
+ // depending on command line switches we don't control here.
+ // Use of this method should be gated by VM_Version::has_prefetchw.
-+ __asm__ ("prefetchw (%0,%1,1)" : : "r" (loc), "r" (interval));
++ //__asm__ ("prefetchw (%0,%1,1)" : : "r" (loc), "r" (interval));
+ // __builtin_prefetch((char*) loc + interval, 1); //
prefetcht0/prefetchw
%rsi,%rdi,1)
++ // prefetcht0/prefetchw (%rsi,%rdi,1)
++ // Do not use the 3dnow prefetchw instruction. It isn't supported on
em64t
++ __asm__ ("prefetcht0 (%0,%1,1)" : : "r" (loc), "r" (interval));
+}
Index: hotspot/src/os_cpu/bsd_amd64/vm/runtime_bsd_amd64.cpp
===================================================================
_________________________________________________________________
Learn English and redeem a Sony PSP at only HK$280!
http://go.msnserver.com/HK/46165.asp
More information about the freebsd-x11
mailing list