[all-commits] [llvm/llvm-project] ff29fd: [lldb] Format AppleObjCRuntimeV2 (NFC)

fredriss via All-commits all-commits at lists.llvm.org
Wed Mar 24 20:08:25 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ff29fdfe4e1390a99f118588b283940ef205f0a8
      https://github.com/llvm/llvm-project/commit/ff29fdfe4e1390a99f118588b283940ef205f0a8
  Author: Jonas Devlieghere <jonas at devlieghere.com>
  Date:   2021-03-24 (Wed, 24 Mar 2021)

  Changed paths:
    M lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp
    M lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.h

  Log Message:
  -----------
  [lldb] Format AppleObjCRuntimeV2 (NFC)


  Commit: c4fee95746caad924cd33ace36bad44a3dbffd79
      https://github.com/llvm/llvm-project/commit/c4fee95746caad924cd33ace36bad44a3dbffd79
  Author: Fred Riss <friss at apple.com>
  Date:   2021-03-24 (Wed, 24 Mar 2021)

  Changed paths:
    M lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp
    M lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.h

  Log Message:
  -----------
  [lldb/ObjC] Make the NonPointerIsaCache initialization lazy

The objc_debug_isa_class_mask magic value that the objc runtime vends
is now initialized using a static initializer instead of a constant
value. The runtime plugin itself will be initialized before the value
is computed and as a result, the cache will get the wrong value.

Making the creation of the NonPointerIsaCache fully lazy fixes this.


Compare: https://github.com/llvm/llvm-project/compare/927050af5326...c4fee95746ca


More information about the All-commits mailing list