Changeset 14489


Ignore:
Timestamp:
04/30/13 13:32:02 (10 years ago)
Author:
rschlatte
Message:

make updating instances a bit thread-safe

  • calling updateLayout() from two different threads at the same time looked like a bad idea
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/abcl/src/org/armedbear/lisp/StandardObject.java

    r14476 r14489  
    212212  }
    213213
    214   Layout updateLayout()
    215   {
    216     Debug.assertTrue(layout.isInvalid());
     214  synchronized Layout updateLayout()
     215  {
     216    if (!layout.isInvalid()) return layout;
    217217    Layout oldLayout = layout;
    218218    LispObject cls = oldLayout.getLispClass();
Note: See TracChangeset for help on using the changeset viewer.