JVMCI: HotSpotObjectConstantImpl
Doug Simon
doug.simon at oracle.com
Wed Oct 19 11:43:23 UTC 2016
This class cannot be made public as it hides unsafe API, especially this method you’re referring to. You should use one of the asObject methods in jdk.vm.ci.hotspot.HotSpotObjectConstant.
-Doug
> On 19 Oct 2016, at 13:32, Juan Fumero <juan.fumero at ed.ac.uk> wrote:
>
> Hi all,
> is there any reason why the class HotSpotObjectConstantImpl is not
> public? As well as the method object() ?
>
> I want to access to its object value:
>
> <code>
> Constant value = ...
> if (value instanceof HotSpotObjectConstant) {
> HotSpotObjectConstantImpl constantValue = (HotSpotObjectConstantImpl)
> value;
> Object data = constantValue.object();
> ...
> }
> </code>
>
>
> So in my own JVMCI version I made it public but just wondering if it
> could be public for future releases if it makes sense.
>
> Thanks
> Juan
>
> --
> The University of Edinburgh is a charitable body, registered in
> Scotland, with registration number SC005336.
>
More information about the graal-dev
mailing list