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

Function findLoadedClass

src/machine.cpp:4938–4953  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4936}
4937
4938GcClass* findLoadedClass(Thread* t, GcClassLoader* loader, GcByteArray* spec)
4939{
4940 PROTECT(t, loader);
4941 PROTECT(t, spec);
4942
4943 ACQUIRE(t, t->m->classLock);
4944
4945 return loader->map()
4946 ? cast<GcClass>(t,
4947 hashMapFind(t,
4948 cast<GcHashMap>(t, loader->map()),
4949 spec,
4950 byteArrayHash,
4951 byteArrayEqual))
4952 : 0;
4953}
4954
4955GcClass* resolveClass(Thread* t,
4956 GcClassLoader* loader,

Callers 4

makeArrayClassFunction · 0.85
resolveArrayClassFunction · 0.85
resolveClassFunction · 0.85
jvmFindLoadedClassFunction · 0.85

Calls 2

hashMapFindFunction · 0.85
mapMethod · 0.45

Tested by

no test coverage detected