MCPcopy Create free account
hub / github.com/ReadyTalk/avian / saveLoadedClass

Function saveLoadedClass

src/machine.cpp:2951–2965  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2949}
2950
2951void saveLoadedClass(Thread* t, GcClassLoader* loader, GcClass* c)
2952{
2953 PROTECT(t, loader);
2954 PROTECT(t, c);
2955
2956 ACQUIRE(t, t->m->classLock);
2957
2958 if (loader->map() == 0) {
2959 GcHashMap* map = makeHashMap(t, 0, 0);
2960 loader->setMap(t, map);
2961 }
2962
2963 hashMapInsert(
2964 t, cast<GcHashMap>(t, loader->map()), c->name(), c, byteArrayHash);
2965}
2966
2967GcClass* makeArrayClass(Thread* t,
2968 GcClassLoader* loader,

Callers 3

makeArrayClassFunction · 0.85
resolveClassFunction · 0.85
defineClassFunction · 0.85

Calls 3

hashMapInsertFunction · 0.85
mapMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected