I'm spinning a lot of classes dynamically for an interpreter. I'm not sure the best way to load the classes into the VM.
Aside from Unsafe's defineAnonymousClass what's the best way to load classes into the VM? I believe I could create a new classloader for each spun class but IIRC classloaders are expensive. I believe as much as possible I'd want to reuse MethodHandle and LambdaMetafactory to rely on the JVMs use of defineAnonymousClass. -- You received this message because you are subscribed to the Google Groups "mechanical-sympathy" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web, visit https://groups.google.com/d/msgid/mechanical-sympathy/8ded7316-7675-4747-afe5-5150a7b6009e%40googlegroups.com.
