RFR: Make Zero build and run with JDK8

Coleen Phillmore coleen.phillimore at oracle.com
Fri Oct 12 04:23:39 PDT 2012


Hi,
I looked at this briefly and it looks okay from the cpp interpreter 
part.  Thank you for getting zero working again.   We tried to keep it 
in sync with the permgen removal changes but didn't regularly test 
this.   Hello world as a test for this is probably enough to verify your 
changes to the non-JSR292 part.
For JSR292 testing, you need to get a full jdk repository and go to the 
jdk/test/java/lang/invoke and run the tests with jtreg.   How to run and 
install jtreg is on the openjdk pages, and it's happily easy to do.

Thanks,
Coleen

On 10/11/2012 4:58 PM, Roman Kennke wrote:
> Am Donnerstag, den 11.10.2012, 11:00 -0700 schrieb Christian Thalinger:
>> On Oct 11, 2012, at 7:55 AM, Roman Kennke<rkennke at redhat.com>  wrote:
>>
>>> Hello,
>>>
>>> In the recent weeks I worked on the Zero interpreter, to get it to build
>>> and run with JDK8, and in particular with the latest changes that came
>>> from mlvm (meth-lazy). The following webrev applies to hsx/hotspot-main:
>>>
>>> http://cr.openjdk.java.net/~rkennke/zerojdk8/webrev.00/
>>>
>>> A few notes on the patch:
>>> - Some makefile changes have been necessary to get it to build at all.
>>> - A bunch of stub functions needed to be added to make the compiler
>>> happy, they should not be called though.
>>> - Most of the changes are related to JSR292 stuff, in particular the
>>> added invokehandle handler, and the changes to invokedynamic resulting
>>> from how the constant pool entry has changed (e.g. method is now in f1).
>>> - A lot of code relating to JSR292 could be removed because most of the
>>> logic has been moved to the (Java) lambda forms.
>>> - A few native methods have been added (MH.invokeBasic(),
>>> MH.linkToVirtual(), MH.linkToStatic() MH.linkToSpecial()).
>>>
>>> With those changes it's possible to build the Zero-JDK with itself, and
>>> run the JSR292 related jtreg testcases. I did not (yet) attempt to run a
>>> TCK or such, this would have to wait until all this gets backported to
>>> JDK7 anyway, and I wanted to get some feedback on the changes first.
>> You may want to run something like JRuby as well.
> Woa, woa, I never touched this before :-) Is there any particular
> program that I should try, that is known to exercise jsr292, or does a
> simple helloworld suffice?
>
> Roman
>
>


More information about the hotspot-dev mailing list