File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
src/jdk.internal.vm.ci/share/classes/jdk/vm/ci/hotspot Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -88,13 +88,15 @@ public JavaConstant getCallSiteTarget(Assumptions assumptions) {
8888 if (runtime ().getCallSite ().isInstance (this )) {
8989 // For ConstantCallSites, we need to read "isFrozen" before reading "target"
9090 // isFullyInitializedConstantCallSite() reads "isFrozen"
91- if (!isFullyInitializedConstantCallSite ()) {
92- if (assumptions == null ) {
93- return null ;
94- }
95- assumptions .record (new Assumptions .CallSiteTargetValue (this , readTarget ()));
91+ if (isFullyInitializedConstantCallSite ()) {
92+ return readTarget ();
9693 }
97- return readTarget ();
94+ if (assumptions == null ) {
95+ return null ;
96+ }
97+ HotSpotObjectConstantImpl result = readTarget ();
98+ assumptions .record (new Assumptions .CallSiteTargetValue (this , result ));
99+ return result ;
98100 }
99101 return null ;
100102 }
You can’t perform that action at this time.
0 commit comments