prefetch instructions in Hotspot
nt_mahmood at yahoo.com
Wed Apr 2 17:15:40 UTC 2014
Right... got it.
Since I am more familiar with C++ than Java, just want to know if I have to recompile/rebuild or update the jdk since I have modified Unsafe.java. Here is my simple code which fails
$ cat Arr.java
public class Arr
public static void main(String args)
int  a = new int;
a = 10; a = 20; a = 30;
for (int i = 0; i < 3; i++)
$ javac Arr.java
Arr.java:11: warning: sun.misc.Unsafe is internal proprietary API and may be removed in a future release
Arr.java:11: cannot find symbol
symbol : method prefetchRead(int)
location: class sun.misc.Unsafe
What did I miss?
On Wednesday, April 2, 2014 8:54 PM, Vladimir Kozlov <vladimir.kozlov at oracle.com> wrote:
>You need to download Hotspot JVM sources too that is where library_call.cpp.
More information about the hotspot-dev