aosp代码中"LSP"是什么意思?

What's the meaning of "LSP" in aosp code?

我在 AOSP 代码中发现了很多“*LSP”函数,例如 OomAdjuster.java 中的 applyOomAdjLSP。这是什么意思?

这个缩写在the ActivityManagerService source中有解释:

For the naming convention of function suffixes:

  • LOSP: Locked with any Of global am Service or Process lock
  • LSP: Locked with both of global am Service and Process lock
  • Locked: Locked with global am service lock alone
  • LPr: Locked with Process lock alone