File tree 1 file changed +8
-6
lines changed
src/jdk.internal.vm.ci/share/classes/jdk/vm/ci/hotspot
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) {
88
88
if (runtime ().getCallSite ().isInstance (this )) {
89
89
// For ConstantCallSites, we need to read "isFrozen" before reading "target"
90
90
// 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 ();
96
93
}
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 ;
98
100
}
99
101
return null ;
100
102
}
You can’t perform that action at this time.
0 commit comments