arr = (RenderAtomListInfo []) removeDlist.toArray(false);
arr = new RenderAtomListInfo[size]; arr = (RenderAtomListInfo []) removeDlist.toArray(arr);
    void updateDlistRendererResource(Renderer rdr) {	int i;	int size = 0;	RenderAtomListInfo arr[];	RenderAtomListInfo ra;		// TODO: there is a possible problem in the case of multiple	// renderers (i.e., multiple screens).  Unless the	// MasterControl sends us a separate message for each	// renderer, we won't create a new display list for renderers	// other than the one passed into this method.	if (rdr == null) {	    return;	}	if ((size = addDlist.size()) > 0) {	    arr = (RenderAtomListInfo []) addDlist.toArray(false);	    for (i = 0; i < size; i++) {		ra = arr[i];		GeometryArrayRetained geo = (GeometryArrayRetained)ra.geometry();		// First time thru this renderer or the context that		// it is built for no longer matches the context		// used in the renderer, create a dlist		sharedDList.add(ra);		geo.addDlistUser(this, ra);		if (((geo.resourceCreationMask & rdr.rendererBit) == 0) ||		    (geo.getDlistTimeStamp(rdr.rendererBit) != 		     rdr.sharedCtxTimeStamp)) {		    geo.resourceCreationMask |=  rdr.rendererBit;		    dirtyList.add(ra);		}	    }	}	if ((size = removeDlist.size()) > 0) {	    arr = (RenderAtomListInfo []) removeDlist.toArray(false);	    for (i = 0; i < size; i++) {		ra = arr[i];		sharedDList.remove(ra);		GeometryArrayRetained geo = (GeometryArrayRetained)ra.geometry();		geo.removeDlistUser(this, ra);		//		System.out.println("========> geo.refcount = "+geo.refCount);		// add this geometry's dlist to be freed		if (geo.isDlistUserSetEmpty(this)) {		    rdr.displayListResourceFreeList.add(geo.dlistObj);		    geo.resourceCreationMask &= ~rdr.rendererBit;		    // All Dlist on all renderer have been freed, then return dlistID		    if (geo.resourceCreationMask == 0) {			geo.freeDlistId();		    }		}	    }	}	if ((size = dirtyList.size()) > 0) {	    for (i = 0; i < size; i++) {		ra = (RenderAtomListInfo)dirtyList.get(i);		GeometryArrayRetained geo = (GeometryArrayRetained)ra.geometry();		if ( (geo.resourceCreationMask & rdr.rendererBit) != 0) {		    rdr.dirtyRenderAtomList.add(ra);		}	    }	    rdr.dirtyDisplayList = true;	    dirtyList.clear();	}    }