Commits

Armin Rigo committed 467151f

An assert that fails (unless I messed up with gdb) on jit+shadowstack translations.

  • Participants
  • Parent commits e4428d6

Comments (0)

Files changed (1)

File pypy/rpython/memory/gctransform/shadowstack.py

         self.gcdata.root_stack_top = llmemory.NULL  # to detect missing restore
 
     def forget_current_state(self):
+        ll_assert(self.gcdata.root_stack_base == self.gcdata.root_stack_top,
+                  "forget_current_state: shadowstack not empty!")
         if self.unused_full_stack:
             llmemory.raw_free(self.unused_full_stack)
         self.unused_full_stack = self.gcdata.root_stack_base