How is JVM.cpp used

David Holmes david.holmes at oracle.com
Wed May 22 23:58:14 UTC 2013


Moving to hotspot-dev - please delete discuss list from any further replies.

On 23/05/2013 3:38 AM, Jipeng Huang wrote:
> The reason why I had that question is that I noted that there're some
> method entries for methods inside java.lang.System in jvm.cpp. I don't know
> whether those entries would be used by interpreter or something else.

As Doug said jvm.cpp is the native implementations for a bunch of native 
method defined in the JDK libraries. Look for JVM_ methods.

Some of those Java-level methods may also be subject to intrinsification 
by C1/C2 in which case the JVM_ version will only be used from 
interpreted code.

David

>
> On Wed, May 22, 2013 at 10:29 AM, Jipeng Huang <robinhjp at gmail.com> wrote:
>
>> Hi,
>>
>> I'm new to openjdk and currently I'm modifying some library methods like
>> methods inside java.lang.System. I can easily change the corresponding
>> method calls for c1 and c2 compilers by changing the mapping between
>> intrinsics and methods but I don't know where jvm.cpp is used and whether
>> that can affect the result.
>>
>> Thanks,
>> Jipeng
>>
>>
>>
>> --
>> View this message in context:
>> http://openjdk.5641.n7.nabble.com/How-is-JVM-cpp-used-tp135050.html
>> Sent from the OpenJDK General discussion mailing list archive at
>> Nabble.com.
>>
>
>
>



More information about the discuss mailing list