< prev index next >

src/hotspot/cpu/aarch64/sharedRuntime_aarch64.cpp

Print this page
@@ -1840,10 +1840,15 @@
    __ strw(rscratch1, Address(rthread, JavaThread::thread_state_offset()));
  
    // Force this write out before the read below
    __ dmb(Assembler::ISH);
  
+   if (UseSVE > 0) {
+     // Make sure that jni code does not change SVE vector length.
+     __ verify_sve_vector_length();
+   }
+ 
    // check for safepoint operation in progress and/or pending suspend requests
    Label safepoint_in_progress, safepoint_in_progress_done;
    {
      __ safepoint_poll_acquire(safepoint_in_progress);
      __ ldrw(rscratch1, Address(rthread, JavaThread::suspend_flags_offset()));
< prev index next >