ObjectMemory class in GlorpVAPort

VA Smalltalk is a "100% VisualAge compatible" IDE that includes the original VisualAge technology and the popular VA Assist and WidgetKit add-ons.

Moderators: Eric Clayberg, wembley, tc, Diane Engles, solveig

ObjectMemory class in GlorpVAPort

Postby g.cotelli » Fri Sep 03, 2010 12:46 pm

Hi,
looking at the current Glorp support in VA 8.0.2 I noticed that in application GlorpVAPort there's a class "ObjectMemory" with no code.

The only references I found in the code are in: Dialect class>>garbageCollect (inside Visual Works/GNU St specific code):
Code: Select all
garbageCollect

   Dialect isGNU ifTrue: [^ ObjectMemory globalGarbageCollect].
   Dialect isVisualWorks ifTrue: [^ ObjectMemory quickGC].
   Dialect isVisualAge ifTrue: [^ (self smalltalkAt: #System) globalGarbageCollect].
   Dialect isSqueak ifTrue: [^Smalltalk garbageCollect].
   Dialect isObjectStudio ifTrue: [^(self smalltalkAt: #System) garbageCollect].
   self error: 'not implemented yet'.
   ^ self


and there's also references to the symbol in "QA Code Coverage", "QA Code Metrics" and "QA Code Critic" applications but also applies to Visual Works code.

I'm having problems with some GemBuilder applications that uses "ObjectMemory" in configuration expressions as a way to detect that the image is for Visual Works.

I will change Dialect class>>garbageCollect to not reference directly ObjectMemory (just like System references in that ugly method), and remove ObjectMemory from the system. Maybe this change could be included in the base image to avoid further conflicts (a class like this and without behavior is IMHO useless).

Regards,
Gabriel
g.cotelli
 
Posts: 13
Joined: Wed Feb 24, 2010 9:30 am

Re: ObjectMemory class in GlorpVAPort

Postby wembley » Thu Sep 09, 2010 11:59 am

Gabriel -

The GLORP port has some rough edges in its first VA Smalltalk release. For this case, your change is appropriate.

Niall Ross and I will be doing some work on GLORP at Camp Smalltalk this weekend in Barcelona -- the platform-specific code (such as the code you referenced) is high on the list of things to address.
John O'Keefe [|], Principal Smalltalk Architect, Instantiations Inc.
wembley
Moderator
 
Posts: 405
Joined: Mon Oct 16, 2006 3:01 am
Location: Durham, NC


Return to VA Smalltalk 7.0, 7.5 & 8.0

Who is online

Users browsing this forum: No registered users and 1 guest

cron