< prev index next >

src/hotspot/cpu/aarch64/templateInterpreterGenerator_aarch64.cpp

Print this page
@@ -1370,10 +1370,15 @@
    // pushes change or anything else is added to the stack then the code in
    // interpreter_frame_result must also change.
    __ push(dtos);
    __ push(ltos);
  
+   if (UseSVE > 0) {
+     // Make sure that jni code does not change SVE vector length.
+     __ verify_sve_vector_length();
+   }
+ 
    // change thread state
    __ mov(rscratch1, _thread_in_native_trans);
    __ lea(rscratch2, Address(rthread, JavaThread::thread_state_offset()));
    __ stlrw(rscratch1, rscratch2);
  
< prev index next >