* Reproduce:
```
bash configure --with-jvm-features=-compiler2 ...
make images
```
* Symptom
```
/home/jdk17/src/hotspot/share/runtime/deoptimization.cpp: In static member function 'static void Deoptimization::uncommon_trap_inner(JavaThread*, jint)':
/home/jdk17/src/hotspot/share/runtime/deoptimization.cpp:1960:43: error: 'VerifyReceiverTypes' was not declared in this scope
bool is_receiver_constraint_failure = VerifyReceiverTypes && (reason == Deoptimization::Reason_receiver_constraint);
^~~~~~~~~~~~~~~~~~~
/home/jdk17/src/hotspot/share/runtime/deoptimization.cpp:1960:43: note: suggested alternative: 'VerifyRememberedSets'
bool is_receiver_constraint_failure = VerifyReceiverTypes && (reason == Deoptimization::Reason_receiver_constraint);
^~~~~~~~~~~~~~~~~~~
VerifyRememberedSets
```