* patcher_get_putstatic: Replaced c->initialized by
[cacao.git] / src / vm / jit / alpha / patcher.c
index 8043aaea84123b23fc616b65a8a586cd16714e83..111d4ec3a88d110f16185425bc482bd8bb5d8ad7 100644 (file)
@@ -28,7 +28,7 @@
 
    Changes:
 
-   $Id: patcher.c 3812 2005-11-28 18:00:47Z edwin $
+   $Id: patcher.c 3868 2005-12-03 15:25:18Z twisti $
 
 */
 
@@ -94,7 +94,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)) {
                        PATCHER_MONITOREXIT;
 
@@ -786,7 +786,7 @@ bool patcher_clinit(u1 *sp)
 
        /* check if the class is initialized */
 
-       if (!c->initialized) {
+       if (!(c->state & CLASS_INITIALIZED)) {
                if (!initialize_class(c)) {
                        PATCHER_MONITOREXIT;