* vm/class.h: Added.
authortwisti <none@none>
Mon, 5 Dec 2005 18:14:33 +0000 (18:14 +0000)
committertwisti <none@none>
Mon, 5 Dec 2005 18:14:33 +0000 (18:14 +0000)
* patcher_get_putstatic: Replaced c->initialized by
  (c->state & CLASS_INITIALIZED).

src/vm/jit/intrp/patcher.c

index be24096c22c55b04d0f98e118ca10b1ffd63005f..49523e0c1809523732d5c9ec08bfe465d5c5bca6 100644 (file)
@@ -28,7 +28,7 @@
 
    Changes:
 
-   $Id: patcher.c 3711 2005-11-18 00:53:01Z twisti $
+   $Id: patcher.c 3873 2005-12-05 18:14:33Z twisti $
 
 */
 
@@ -39,6 +39,7 @@
 #include "mm/memory.h"
 #include "native/native.h"
 #include "vm/builtin.h"
+#include "vm/class.h"
 #include "vm/field.h"
 #include "vm/initialize.h"
 #include "vm/options.h"
@@ -70,7 +71,7 @@ bool patcher_get_putstatic(u1 *sp)
 
        /* check if the field's class is initialized */
 
-       if (!fi->class->initialized)
+       if (!(fi->class->state & CLASS_INITIALIZED))
                if (!initialize_class(fi->class))
                        return false;