info/cws/dbaperf1 : jvmaccess::VirtualMachine no longer cares for context class loader

View: New views
1 Messages — Rating Filter:   Alert me  

info/cws/dbaperf1 : jvmaccess::VirtualMachine no longer cares for context class loader

by Stephan Bergmann :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



          Type: info
         Title: jvmaccess::VirtualMachine no longer cares for context class loader
     Posted by: stephan.bergmann@...
      Affected: -
         TaskId: i99290
<http://www.openoffice.org/issues/show_bug.cgi?id=99290>
Effective from: cws/dbaperf1
           CWS:
<http://eis.services.openoffice.org/EIS2/cws.ShowCWS?Path=DEV300/dbaperf1>
    CWS status: integrated


*Summary*
--------
jvmaccess/virtualmachine.hxx:
jvmaccess::VirtualMachine

*Description*
-------------
The class jvmaccess::VirtualMachine took care to set a non-null
context class loader for every thread attached to the VM (especially
native threads that had not been spawned by the VM and would have a
null context class loader).  However, this had performance
implications.  And after the cleanup of the main class path in OOo any
code that uses the context class loader now needs to set it explicitly
anyway (see
<http://blogs.sun.com/GullFOSS/entry/is_your_java_extension_ready>
etc.), so removing the code that sets the context class loader
whenever a thread is attached to the VM appears to be safe.


Send feedback to interface-announce@...



---------------------------------------------------------------------
To unsubscribe, e-mail: interface-announce-unsubscribe@...
For additional commands, e-mail: interface-announce-help@...