2 ms·
Can anyone give more information about the thread lock in class initialization that he's talking about? Is he talking about static class initializers? If so, I
by jxcole 15y ago
Can anyone give more information about the thread lock in class initialization that he's talking about? Is he talking about static class initializers?
If so, I agree with him that these definitely seem like a terrible idea, along with destructors in java (in c++ they are fine because you call them explicitly). I wonder if anyone has actually found a good use for them.
- rayiner 15y agohttp://www.cs.umd.edu/~pugh/java/memoryModel/archive/1223.html http://www.cs.umd.edu/~pugh/java/memoryModel/archive/1223.ht...