| 125 | } |
| 126 | |
| 127 | void MAssembly::Unload(bool isReloading) |
| 128 | { |
| 129 | if (!IsLoaded()) |
| 130 | return; |
| 131 | PROFILE_CPU(); |
| 132 | |
| 133 | Unloading(this); |
| 134 | |
| 135 | // Close runtime |
| 136 | UnloadImage(isReloading); |
| 137 | |
| 138 | // Cleanup |
| 139 | _debugData.Resize(0); |
| 140 | _assemblyPath.Clear(); |
| 141 | _isLoading = false; |
| 142 | _isLoaded = false; |
| 143 | _hasCachedClasses = false; |
| 144 | #if USE_NETCORE |
| 145 | ArenaAllocator::ClearDelete(_typeClasses); |
| 146 | _classes.Clear(); |
| 147 | #else |
| 148 | _classes.ClearDelete(); |
| 149 | #endif |
| 150 | Memory.Free(); |
| 151 | |
| 152 | Unloaded(this); |
| 153 | } |
| 154 | |
| 155 | MClass* MAssembly::GetClass(const StringAnsiView& fullname) const |
| 156 | { |
no test coverage detected