code: @Implementation(minSdk = P)
    protected static long nativeCreate() {
      // AssetManager2 needs to be protected by a lock. To avoid cache misses, we allocate the lock and
      // AssetManager2 in a contiguous block (GuardedAssetManager).
      // return reinterpret_cast<long>(new GuardedAssetManager());
  
      long cppAssetManagerRef;
  
      // we want to share a single instance of the system CppAssetManager2
      if (inNonSystemConstructor) {
        CppAssetManager2 appAssetManager = new CppAssetManager2();
        cppAssetManagerRef = Registries.NATIVE_ASSET_MANAGER_REGISTRY.register(appAssetManager);
      } else {
        if (systemCppAssetManager2 == null) {
          systemCppAssetManager2 = new CppAssetManager2();
          systemCppAssetManager2Ref =
              Registries.NATIVE_ASSET_MANAGER_REGISTRY.register(systemCppAssetManager2);
        }
  
        cppAssetManagerRef = systemCppAssetManager2Ref;
      }
  
      return cppAssetManagerRef;
    }
docs: static jlong NativeCreate(JNIEnv* /*env*/, jclass /*clazz*/) {