Search Unity

Question When the function il2cpp::vm::MetadataCache::Clear() is called?

Discussion in 'Windows' started by calc1fer, Jan 14, 2021.

  1. calc1fer

    calc1fer

    Joined:
    Oct 5, 2019
    Posts:
    62
    I'm trying to get rid of cached part of global metadata on memory.
    But I can't find the references when the function 'il2cpp::vm::MetadataCache::Clear()' is called.

    When does it called at Windows Standalone64?
     
  2. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,936
    This function is only called with IL2CPP is shutdown and reloaded, which is not supported on Windows Standalone player, I believe.

    After it is called, the only thing you can do is reload the metadata cache - the program won't be able to run without that, so unfortunately you cannot get rid of it.
     
  3. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,936
    We don't support modification of any of these files, unfortunately. This is not an extensibility point for Unity.
     
  4. calc1fer

    calc1fer

    Joined:
    Oct 5, 2019
    Posts:
    62
    okay, cool.
    thanks for reply.