JavaMemoryModel: Another place where the default value isn't acceptable

From: Bill Pugh (
Date: Fri Jul 09 1999 - 14:07:19 EDT

Say you have

Initially, Foo.a = new int[4]

Thread 1 Thread 2

Foo.a = new int[5]; int l = a.length;

In this case, l could get 4 or 5, but I hope we will all be in agreement that
seeing 0 is forbidden.

This is the JavaMemoryModel mailing list, managed by Majordomo 1.94.4.

To send a message to the list, email
To send a request to the list, email and put
your request in the body of the message (use the request "help" for help).
For more information, visit

This archive was generated by hypermail 2b29 : Thu Oct 13 2005 - 07:00:16 EDT