Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 348770

Summary: weaving hook support creates an extra byte[] copy each class load when it is not necessary
Product: [Eclipse Project] Equinox Reporter: Thomas Watson <tjwatson>
Component: FrameworkAssignee: Thomas Watson <tjwatson>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.7   
Target Milestone: Juno M1   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Bug Depends on:    
Bug Blocks: 346518    

Description Thomas Watson CLA 2011-06-08 11:42:20 EDT
+++ This bug was initially created as a clone of Bug #346518 +++

In org.eclipse.osgi.internal.baseadaptor.weaving.WeavingHookConfigurator.processClass(String, byte[], ClasspathEntry, BundleEntry, ClasspathManager) there is a call to org.eclipse.osgi.internal.baseadaptor.weaving.WovenClassImpl.setHooksComplete() which I think is unnecessary and results in an extra byte[] copy for each class load.
Comment 1 Thomas Watson CLA 2011-06-08 11:59:02 EDT
I released the patch from bug346518 to HEAD.