Fwd: zero-shark ldc bugfix

Andrew Zhogin andrew.zhogin at gmail.com
Thu Oct 18 01:55:48 PDT 2012


---------- Forwarded message ----------
From: Andrew Zhogin <andrew.zhogin at gmail.com>
Date: Thu, Oct 11, 2012 at 6:19 PM
Subject: zero-shark ldc bugfix
To: zero-dev at openjdk.java.net


Hi.

I found problem with shark code generation for ldc* opcodes.

Crash example (launch with -Xcomp):

import java.text.*;
import java.util.Locale;
import java.util.Currency;
import sun.util.LocaleServiceProviderPool;
import java.util.spi.CurrencyNameProvider;

public class test {

    public static void main(String[] args) {

        LocaleServiceProviderPool.getPool(CurrencyNameProvider.class);
    }
}

In SharkConstant constructor: already mirrored unloaded-class object
is not expected and is_loaded is set to true.
Java-mirror object for klass is not "is_klass", just an object.

Here is patch in attachment.

--
Best regards, Andrew Zhogin.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2491.patch
Type: application/octet-stream
Size: 2482 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20121018/a79eaee9/2491.patch 


More information about the distro-pkg-dev mailing list