Merge changes Iba59fdc3,I812fccf2 into main

* changes:
  libsnapshot: configure threshold size
  libsnapshot: set thread priority