(Link to AcmlmWiki) Offline: thank ||bass
Register | Login
Views: 13,040,846
Main | Memberlist | Active users | Calendar | Chat | Online users
Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album
05-17-24 10:27 PM
0 users currently in Programming.
Acmlm's Board - I3 Archive - Programming - Java Cleaning Up Memory...
  
User name:
Password:
Reply:
 
Options: - -
Quik-Attach:
Preview for more options

Max size 1.00 MB, types: png, gif, jpg, txt, zip, rar, tar, gz, 7z, ace, mp3, ogg, mid, ips, bz2, lzh, psd

UserPost
1337_Ac3
Posts: 83/90
Originally posted by neotransotaku
I don't think Java as a delete operator. The closest thing you can get to running the garbage collector on demand is to call it via System.gc()

You're right, java doesn't have a delete opperator... O_o That's pretty much utter fail, seeing as it's enough resource consuming at the moment. Let's hope someone gets it done now that java is open source... Or is the System.gc() you're talking about getting the work done?
neotransotaku
Posts: 1849/1860
I don't think Java as a delete operator. The closest thing you can get to running the garbage collector on demand is to call it via System.gc()
1337_Ac3
Posts: 82/90
I think anything created with the new opperator can be deleted with the Delete opperator.
DahrkDaiz
Posts: 397/403
Ok well it's an array of objects, the objects were created with the new operator and the initial array was created with the new operator, does this method still apply?
1337_Ac3
Posts: 81/90
Delete listarray;

That is, if you used the new opperator when you created it.
DahrkDaiz
Posts: 396/403
How would I go about freeing up resources manually rather than relying on the garbage collector to do so? Basically I have an array of objects, I want to randomize the list and I plan on doing so by creating another empty list and randomly placing elements in the previous list int he new one. However, I want to remove the old, unused list immediately rather than hoping the garbage collector gets it in a timely manner. Any tips?
Acmlm's Board - I3 Archive - Programming - Java Cleaning Up Memory...


ABII

Acmlmboard 1.92.999, 9/17/2006
©2000-2006 Acmlm, Emuz, Blades, Xkeeper

Page rendered in 0.002 seconds; used 348.94 kB (max 387.52 kB)