classloader

45 views
Skip to first unread message

Cristian Lorenzetto

unread,
Dec 15, 2017, 1:16:15 PM12/15/17
to reflectasm-users
reflectasm is indexing internally the methods class in a static variable? 
pratically if i use different class loaders with same class definition what happens?

in the case the classloader using strategy with no parent  classloader ... if the classloader is destructed what happens?

Nate

unread,
Dec 18, 2017, 11:30:14 PM12/18/17
to reflecta...@googlegroups.com
AccessClassLoader uses a WeakHashMap to go from the Class you want to access to an AccessClassLoader for loading the ReflectASM generated FieldAccess or MethodAccess class.

If you use different class loaders, you will have two different Class objects.

WeakReferences are used, so ReflectASM should not cause issues with GC.



--
You received this message because you are subscribed to the "reflectasm-users" group.
http://groups.google.com/group/reflectasm-users
---
You received this message because you are subscribed to the Google Groups "reflectasm-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to reflectasm-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages