[10] RFR 8186046 Minimal ConstantDynamic support

Paul Sandoz paul.sandoz at oracle.com
Tue Nov 7 16:31:02 UTC 2017


> On 5 Nov 2017, at 16:55, David Holmes <david.holmes at oracle.com> wrote:
> 
> On 4/11/2017 7:28 AM, Paul Sandoz wrote:
>>> On 3 Nov 2017, at 11:14, Karen Kinnear <karen.kinnear at oracle.com> wrote:
>>> 6. SD::find_java_mirror_for_type
>>> You have resolve_or_null/fail doing CHECK_(empty) which should
>>> check for a NULL constant_type_klass. This is followed by an explicit if
>>> (constant_type_klass == NULL) — is that needed?
>>> 
>> Can SD:resolve_or_null return a null value when HAS_PENDING_EXCEPTION=false?
> 
> I don't believe it actually can - the only reason you would get NULL is if something went wrong, for which an exception must be pending. However, even the internal implementation underlying this seems unclear on that point

Right, i am gonna leave things as they are for now unless we come up with a more definitive answer.

Paul.

> e.g in SystemDictionary::resolve_instance_class_or_null we have:
> 
>  if (HAS_PENDING_EXCEPTION || k == NULL) {
>    return NULL;
>  }
> 
> David
> ——


More information about the hotspot-dev mailing list