db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kathey Marsden <kmarsdende...@sbcglobal.net>
Subject Re: [jira] Updated: (DERBY-700) Derby does not prevent dual boot of database from different classloaders on Linux
Date Wed, 30 May 2007 19:57:38 GMT
Daniel John Debrunner wrote:
> Actually string constants are by definition interned, so 
> synchronized(DERBY_JVM_ID) is the same as 
> synchronized(DERBY_JVM_ID.intern()) since DERBY_JVM_ID is a reference 
> to a string constant. Though using intern() wouldn't harm and might 
> make the code more readable.
Silly question.  Would an interned string allow synchronization across 
If not, how do I synchronize  two threads using different classloaders.

View raw message